/* =========================================================
   UR Creative — Design System
   Dark charcoal / midnight navy base, electric blue + violet accents
   ========================================================= */

:root {
  --bg-0: #060810;
  --bg-1: #0a0e18;
  --bg-2: #0e1320;
  --bg-3: #131a2b;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-0: #f5f7fb;
  --text-1: #c4cbdc;
  --text-2: #8891a7;
  --text-3: #5b6478;

  --blue: #3d7bff;
  --blue-bright: #6fa1ff;
  --violet: #8b5cf6;
  --violet-soft: #a78bfa;

  --gradient-accent: linear-gradient(120deg, var(--blue) 0%, var(--violet) 100%);
  --gradient-text: linear-gradient(120deg, #8fb4ff 0%, #b79bff 100%);
  --gradient-radial: radial-gradient(circle at 30% 20%, rgba(61, 123, 255, 0.18), transparent 60%);

  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(139, 92, 246, 0.15), 0 20px 60px rgba(61, 123, 255, 0.15);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --container: 1240px;
  --space-section: clamp(64px, 9vw, 128px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.2s;
  --dur-mid: 0.45s;
  --dur-slow: 0.8s;
}

@media (prefers-color-scheme: light) {
  :root { color-scheme: dark; }
}

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

/* Visible keyboard focus everywhere, without adding a ring on mouse/touch clicks */
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }
.project-card:focus-visible, .strip-card:focus-visible { outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: page-fade-in 0.35s ease forwards;
}
@keyframes page-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
input, textarea, select { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: "Sora", "Inter", sans-serif;
  color: var(--text-0);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 600; }
p { margin: 0; }

.section { padding: var(--space-section) 0; position: relative; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { max-width: 680px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 14px; color: var(--text-2); font-size: 1.05rem; }

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
}
.btn:active { transform: scale(0.97); }
.btn-spring-back { transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important; }
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,0.16) 48%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0.16) 52%, transparent 60%);
  transform: translateX(-140%);
  transition: transform 0.65s ease;
}
.btn:hover::before { transform: translateX(140%); }

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(61, 123, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(61, 123, 255, 0.45); }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--violet) 0%, var(--blue) 100%);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease);
}
.btn-primary:hover::after { opacity: 1; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-0);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); border-color: rgba(255,255,255,0.3); }
.btn-ghost.active { background: var(--gradient-accent); border-color: transparent; color: #fff; }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  /* backdrop-filter is intentionally excluded here — animating/transitioning it forces
     a re-blur of everything behind a fixed element on every scroll frame, which is a
     real source of mobile scroll jank. It switches instantly with the class instead. */
  transition: background var(--dur-mid) var(--ease), padding var(--dur-mid) var(--ease), border-color var(--dur-mid) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding: 14px 0;
  background: rgba(8, 11, 20, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--text-0); }
.logo .mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 800; color: #fff;
  box-shadow: 0 6px 18px rgba(61,123,255,0.35);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
.logo .word-creative { font-weight: 400; color: var(--text-2); margin-left: 2px; }
.logo.logo-intro .mark { animation: logo-intro 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes logo-intro {
  0% { transform: translateY(6px) scale(0.92); box-shadow: 0 0 0 rgba(61,123,255,0); }
  55% { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 26px rgba(61,123,255,0.55); }
  100% { transform: translateY(0) scale(1); box-shadow: 0 6px 18px rgba(61,123,255,0.35); }
}
a.logo:hover .mark { transform: translateY(-2px) rotate(-2deg); box-shadow: 0 10px 22px rgba(61,123,255,0.5); }
@media (prefers-reduced-motion: reduce) {
  .logo.logo-intro .mark { animation: none; }
  .logo .mark { transition: none; }
}

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-1);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-links a:hover { color: var(--text-0); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--text-0); background: rgba(255,255,255,0.08); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text-0); border-radius: 2px; transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(6, 8, 16, 0.98);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease), visibility var(--dur-mid);
}
.mobile-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav a { font-size: 1.5rem; font-family: "Sora", sans-serif; font-weight: 600; padding: 14px 0; color: var(--text-1); }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--text-0); }
.mobile-nav .btn { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(120px, 18vw, 180px) 0 90px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto -10%; height: 900px;
  background: var(--gradient-radial);
  pointer-events: none;
  z-index: 0;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.85;
  transform: scale(1);
  animation: hero-bg-drift 28s ease-in-out infinite alternate;
  transition: opacity 1.2s var(--ease);
}
@keyframes hero-bg-drift {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.04) translate3d(-1%, 0.6%, 0); }
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,8,16,0.9) 0%, rgba(6,8,16,0.72) 45%, rgba(6,8,16,0.6) 100%),
              linear-gradient(0deg, rgba(6,8,16,0.62) 0%, rgba(6,8,16,0.32) 25%, rgba(6,8,16,0.32) 75%, rgba(6,8,16,0.68) 100%);
}
.hero-bg-sweep {
  position: absolute; inset: -20%; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(220,234,255,0.16) 43%, rgba(220,234,255,0.4) 50%, rgba(220,234,255,0.16) 57%, transparent 68%);
  animation: hero-sweep 8.4s ease-in-out infinite;
  will-change: transform;
}
@keyframes hero-sweep {
  0%, 100% { transform: translateX(-30%); }
  50% { transform: translateX(30%); }
}
@media (max-width: 760px) {
  .hero-bg-sweep { animation-duration: 7s; }
}
/* On wide/short desktop heroes, the same diagonal band reads much fainter than on a
   tall mobile hero (the 115deg angle covers far less of a wide-short box) — boost it
   further here so the sweep is equally visible on desktop, not just on phone. */
@media (min-width: 1081px) {
  .hero-bg-sweep {
    background: linear-gradient(115deg, transparent 28%, rgba(220,234,255,0.2) 42%, rgba(220,234,255,0.48) 50%, rgba(220,234,255,0.2) 58%, transparent 72%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
  .hero-bg-sweep { animation: none; opacity: 0; will-change: auto; }
}

/* Cinematic aurora + grain layer for hero */
.hero-aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-aurora span {
  position: absolute;
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: aurora-drift 22s ease-in-out infinite;
}
.hero-aurora span:nth-child(1) { top: -10%; left: -8%; background: radial-gradient(circle, var(--blue), transparent 70%); animation-delay: 0s; }
.hero-aurora span:nth-child(2) { top: 10%; right: -12%; background: radial-gradient(circle, var(--violet), transparent 70%); animation-delay: -7s; animation-duration: 26s; }
.hero-aurora span:nth-child(3) { bottom: -18%; left: 30%; background: radial-gradient(circle, var(--blue-bright), transparent 70%); animation-delay: -14s; animation-duration: 30s; opacity: 0.22; }
@keyframes aurora-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, 6%) scale(1.08); }
  66% { transform: translate(-5%, -3%) scale(0.96); }
}
.grain-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) {
  .hero-aurora span { animation: none; }
}
@media (max-width: 760px) {
  .hero-aurora span, .hero-aurora span:nth-child(2) { filter: blur(60px); opacity: 0.22; animation-duration: 16s; }
  /* Fewer ambient blobs on mobile to reduce paint/compositing cost. */
  .hero-aurora span:nth-child(3) { display: none; }
}

/* Hero heading responsive break */
.hero-heading-break { display: block; }
@media (max-width: 640px) {
  .hero-heading-break { display: none; }
}

/* Hero sincerity signature */
.hero-signature {
  display: flex; align-items: center; gap: 16px;
  margin-top: 30px; padding-top: 26px;
  border-top: 1px solid var(--border);
  max-width: 540px;
}
.hero-signature-flourish {
  width: 58px; height: 26px; flex-shrink: 0;
  color: var(--violet-soft);
  opacity: 0.9;
}
.hero-signature-flourish path {
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  filter: drop-shadow(0 0 0 rgba(139,92,246,0));
}
.hero-signature.in-view .hero-signature-flourish path {
  animation: sig-draw 1.1s ease forwards 0.3s, sig-glow 1.1s ease forwards 0.3s;
}
@keyframes sig-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes sig-glow {
  0% { filter: drop-shadow(0 0 0 rgba(139,92,246,0)); }
  55% { filter: drop-shadow(0 0 6px rgba(139,92,246,0.65)); }
  100% { filter: drop-shadow(0 0 2px rgba(139,92,246,0.25)); }
}
.hero-signature-text {
  font-family: "Caveat", "Sora", cursive, sans-serif;
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--text-1);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s var(--ease) 0.15s, transform 0.6s var(--ease) 0.15s;
}
.hero-signature.in-view .hero-signature-text { opacity: 1; transform: translateY(0); }
.hero-signature-highlight {
  position: relative;
  font-weight: 700;
  background: var(--gradient-text);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-signature.in-view .hero-signature-highlight {
  animation: sig-shimmer 3.2s ease-in-out 1.4s infinite;
}
@keyframes sig-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-signature-highlight::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--gradient-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s ease 0.9s;
}
.hero-signature.in-view .hero-signature-highlight::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .hero-signature-flourish path { stroke-dashoffset: 0; animation: none; filter: none; }
  .hero-signature-text { opacity: 1; transform: none; transition: none; }
  .hero-signature-highlight { animation: none; }
  .hero-signature-highlight::after { transform: scaleX(1); transition: none; }
}
@media (max-width: 760px) {
  .hero-signature { margin-top: 24px; padding-top: 20px; }
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: rgba(61,123,255,0.08);
  border: 1px solid rgba(61,123,255,0.25);
  font-size: 0.82rem; font-weight: 600; color: var(--blue-bright);
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #35d07f;
  box-shadow: 0 0 0 0 rgba(53,208,127,0.6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(53,208,127,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(53,208,127,0); }
  100% { box-shadow: 0 0 0 0 rgba(53,208,127,0); }
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.15rem; color: var(--text-2); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; }
.hero-meta-item { display: flex; align-items: center; gap: 10px; }
.hero-meta-item .ico {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-bright); flex-shrink: 0;
}
.hero-meta-item strong { display: block; font-size: 0.85rem; color: var(--text-0); font-weight: 600; }
.hero-meta-item span { font-size: 0.78rem; color: var(--text-3); }

/* Hero visual side */
.hero-visual { position: relative; max-width: 380px; margin-left: auto; }
.hero-visual .frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 4.6;
}
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,8,16,0) 40%, rgba(6,8,16,0.75) 100%);
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Hero code-editor mockup ---------- */
.code-mockup {
  position: absolute; bottom: -18px; right: -14px; z-index: 2;
  width: 180px;
  background: rgba(10,13,22,0.88);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  overflow: hidden;
  opacity: 0.9;
  animation: float-y 6s ease-in-out infinite;
  animation-delay: 1.2s;
}
.code-mockup-bar {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 9px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.code-mockup-bar span.dot-red, .code-mockup-bar span.dot-yellow, .code-mockup-bar span.dot-green { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.code-mockup-bar .dot-red { background: #ff5f57; }
.code-mockup-bar .dot-yellow { background: #febc2e; }
.code-mockup-bar .dot-green { background: #28c840; }
.code-mockup-label { margin-left: 5px; font-size: 0.58rem; color: var(--text-3); font-family: "Sora", sans-serif; }
.code-mockup-body { padding: 9px 10px 10px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 0.58rem; line-height: 1.65; }
.code-line { white-space: nowrap; opacity: 0; transform: translateX(-4px); animation: code-line-in 0.5s ease forwards; }
.code-line.c-indent { padding-left: 14px; }
.code-line:nth-child(1) { animation-delay: 0.3s; }
.code-line:nth-child(2) { animation-delay: 0.6s; }
.code-line:nth-child(3) { animation-delay: 0.85s; }
.code-line:nth-child(4) { animation-delay: 1.1s; }
.code-line:nth-child(5) { animation-delay: 1.4s; }
@keyframes code-line-in { to { opacity: 1; transform: translateX(0); } }
.c-tag { color: var(--blue-bright); }
.c-attr { color: var(--violet-soft); }
.c-str { color: #9ee6a8; }
.c-text { color: var(--text-1); }
.c-cursor { display: inline-block; width: 6px; height: 12px; background: var(--blue-bright); margin-left: 2px; vertical-align: text-bottom; animation: cursor-blink 1s step-end infinite; }
@keyframes cursor-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .code-mockup { animation: none; }
  .code-line { animation: none; opacity: 1; transform: none; }
  .c-cursor { animation: none; }
}
@media (max-width: 1080px) {
  .code-mockup { display: none; }
}

/* ---------- Note card (Ready to start) ---------- */
.note-card {
  position: relative;
  background: linear-gradient(180deg, rgba(19,26,43,0.9), rgba(10,14,24,0.92));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}
.note-card::before {
  content: "";
  position: absolute; top: -60%; right: -30%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(139,92,246,0.28), transparent 65%);
  pointer-events: none;
}
.note-card .note-eyebrow { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; color: var(--violet-soft); text-transform: uppercase; margin-bottom: 8px; }
.note-card h3 { font-size: 1.15rem; margin-bottom: 9px; }
.note-card .note-body { font-size: 0.82rem; color: var(--text-2); margin-bottom: 16px; }
.note-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.note-step { display: flex; gap: 11px; align-items: flex-start; }
.note-step .num {
  flex-shrink: 0;
  width: 23px; height: 23px;
  border-radius: 7px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 700; color: var(--blue-bright);
}
.note-step strong { display: block; font-size: 0.78rem; color: var(--text-0); font-weight: 600; }
.note-step span { font-size: 0.7rem; color: var(--text-3); }
.note-card .note-close { font-size: 0.74rem; color: var(--text-3); border-top: 1px solid var(--border); padding-top: 13px; }

.signature-row { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding-top: 13px; border-top: 1px dashed var(--border); }
.signature-mark svg { width: 80px; height: 34px; color: var(--text-1); opacity: 0.85; }
.stamp {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(139,197,255,0.55);
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-14deg);
  position: relative;
  flex-shrink: 0;
}
.stamp::before {
  content: "";
  position: absolute; inset: 3px;
  border: 1px dashed rgba(139,197,255,0.4);
  border-radius: 50%;
}
.stamp span {
  font-family: "Sora", sans-serif;
  font-size: 0.46rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgba(163,209,255,0.9);
  text-align: center;
  line-height: 1.15;
}

/* ---------- Editorial visual section (post-hero) ---------- */
.editorial-section { padding-top: 0; padding-bottom: clamp(48px, 7vw, 88px); }
.editorial-frame { position: relative; }
.editorial-visual { position: relative; }
.editorial-glow {
  position: absolute; inset: -26px;
  background: radial-gradient(55% 55% at 25% 20%, rgba(61,123,255,0.4), transparent 70%),
              radial-gradient(50% 50% at 82% 85%, rgba(139,92,246,0.35), transparent 70%);
  filter: blur(34px);
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
}
.editorial-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  aspect-ratio: 21 / 9;
}
.editorial-img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.1); transition: transform 1.6s var(--ease); }
.editorial-frame.in-view .editorial-img { transform: scale(1); }
.editorial-card:hover .editorial-img { transform: scale(1.045); }
.editorial-frame.in-view .editorial-card:hover .editorial-img { transform: scale(1.045); }
.editorial-labels { position: absolute; top: 24px; right: 24px; z-index: 2; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.editorial-label {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(10,14,24,0.6); backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  font-size: 0.76rem; font-weight: 600; color: var(--text-0);
  opacity: 0; transform: translateX(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.editorial-label .dot-mini { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-bright); flex-shrink: 0; }
.editorial-frame.in-view .editorial-label { opacity: 1; transform: translateX(0); }
.editorial-frame.in-view .editorial-label:nth-child(1) { transition-delay: 0.5s; }
.editorial-frame.in-view .editorial-label:nth-child(2) { transition-delay: 0.62s; }
.editorial-frame.in-view .editorial-label:nth-child(3) { transition-delay: 0.74s; }
.editorial-frame.in-view .editorial-label:nth-child(4) { transition-delay: 0.86s; }
.editorial-frame.in-view .editorial-label:nth-child(5) { transition-delay: 0.98s; }
.editorial-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,8,16,0.94) 15%, rgba(6,8,16,0.58) 48%, rgba(6,8,16,0.18) 78%),
              linear-gradient(0deg, rgba(6,8,16,0.88) 0%, transparent 50%);
}
.editorial-content { position: absolute; left: 0; bottom: 0; z-index: 2; padding: clamp(20px, 5vw, 56px); max-width: 620px; }
.editorial-content h2 { margin-bottom: 14px; font-size: clamp(1.6rem, 4.6vw, 2.7rem); line-height: 1.18; }
.editorial-content p { color: var(--text-1); font-size: clamp(0.92rem, 2.2vw, 1.02rem); line-height: 1.65; margin-bottom: 24px; max-width: 520px; }

/* ---------- Showreel section (autoplaying background video, no controls) ---------- */
.showreel-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 8;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  isolation: isolate;
}
.showreel-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  background: var(--bg-2);
  transform: scale(1.1);
  transition: transform 1.6s var(--ease), opacity 1.4s var(--ease);
  pointer-events: none;
}
.showreel-frame.in-view .showreel-video { transform: scale(1); }
.showreel-frame.in-view:hover .showreel-video { transform: scale(1.045); }
.showreel-overlay { position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, rgba(6,8,16,0.8) 0%, rgba(6,8,16,0.2) 45%, rgba(6,8,16,0.5) 100%); }
.showreel-tag {
  position: absolute; top: 22px; left: 24px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(10,14,24,0.6); backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-bright);
}
.showreel-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-bright); }
.showreel-caption { position: absolute; left: 28px; bottom: 24px; z-index: 2; max-width: 80%; }
.showreel-caption strong { display: block; font-size: 1.05rem; color: var(--text-0); font-family: "Sora", sans-serif; margin-bottom: 3px; }
.showreel-caption span { font-size: 0.85rem; color: var(--text-2); }
@media (max-width: 760px) {
  .showreel-frame { aspect-ratio: 4/5; }
  .showreel-caption { max-width: none; right: 20px; }
}

/* ---------- Stats / Projects section (premium cards) ---------- */
.stats-bar {
  padding: clamp(56px, 8vw, 88px) 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: "";
  position: absolute; inset: -30% -10% auto -10%; height: 260%;
  background: radial-gradient(45% 45% at 30% 40%, rgba(61,123,255,0.12), transparent 70%),
              radial-gradient(40% 40% at 80% 60%, rgba(139,92,246,0.1), transparent 70%);
  pointer-events: none;
}
.stats-bar::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000 30%, transparent 85%);
  mask-image: radial-gradient(80% 80% at 50% 50%, #000 30%, transparent 85%);
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}
.stat-card-premium {
  position: relative;
  min-width: 0;
  padding: 30px 24px 26px;
  background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.5s var(--ease), border-color var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease), opacity 0.6s var(--ease);
}
.stat-card-premium::before {
  content: "";
  position: absolute; top: 0; left: 14%; right: 14%; height: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.7s var(--ease) 0.15s, opacity 0.4s var(--ease);
  opacity: 0.85;
}
.stat-card-premium::after {
  content: "";
  position: absolute; right: -18px; bottom: -22px;
  width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle, rgba(61,123,255,0.16), transparent 72%);
  z-index: -1;
  opacity: 0; transform: scale(0.6);
  transition: opacity 0.6s var(--ease) 0.2s, transform 0.6s var(--ease) 0.2s;
}
.stats-grid.in-view .stat-card-premium {
  opacity: 1; transform: translateY(0) scale(1);
}
.stats-grid.in-view .stat-card-premium::before { transform: scaleX(1); }
.stats-grid.in-view .stat-card-premium::after { opacity: 1; transform: scale(1); }
.stats-grid.in-view .stat-card-premium:nth-child(1) { transition-delay: 0.05s; }
.stats-grid.in-view .stat-card-premium:nth-child(2) { transition-delay: 0.15s; }
.stats-grid.in-view .stat-card-premium:nth-child(3) { transition-delay: 0.25s; }
.stats-grid.in-view .stat-card-premium:nth-child(4) { transition-delay: 0.35s; }
.stats-grid.in-view .stat-card-premium:hover { transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .stat-card-premium { opacity: 1; transform: none; }
  .stat-card-premium::before { transform: scaleX(1); }
  .stat-card-premium::after { opacity: 1; transform: scale(1); }
}
.stat-card-premium:hover {
  transform: translateY(-6px);
  border-color: rgba(139,197,255,0.4);
  box-shadow: 0 16px 36px rgba(6,8,16,0.45), 0 0 0 1px rgba(61,123,255,0.15);
}
.stat-card-premium:hover::after { opacity: 1; transform: scale(1.35); }
.stat-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.stat-card-premium .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(61,123,255,0.3);
  transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}
.stat-card-premium:hover .ico { transform: scale(1.1) rotate(-6deg); box-shadow: 0 8px 22px rgba(139,92,246,0.45); }
.stat-number {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-card-premium.stat-live .stat-number { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.stat-live-reveal { display: inline-block; }
.stat-label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-0); margin-bottom: 3px; }
.stat-sub { display: block; font-size: 0.78rem; color: var(--text-3); overflow-wrap: break-word; }
.live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #35d07f;
  box-shadow: 0 0 0 0 rgba(53,208,127,0.6);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}
@media (max-width: 760px) {
  .stat-card-premium { padding: 22px 20px; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform var(--dur-mid) var(--ease), border-color var(--dur-mid) var(--ease), background var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--card-hover); box-shadow: var(--shadow-soft); }

/* Services grid */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card { overflow: hidden; display: flex; flex-direction: column; }
.service-card .thumb { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.service-card:hover .thumb img { transform: scale(1.08); }
.service-card .thumb::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(6,8,16,0) 55%, rgba(6,8,16,0.9) 100%); }
.service-card .thumb .num {
  position: absolute; top: 14px; left: 14px;
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(6,8,16,0.65); backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; color: var(--blue-bright);
}
.service-card .body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.service-card h3 { font-size: 1.12rem; }
.service-card p { font-size: 0.88rem; color: var(--text-2); flex: 1; }
.service-card .link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--blue-bright); }
.service-card .link svg { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease); }
.service-card:hover .link svg { transform: translateX(4px); }

/* Portfolio */
.portfolio-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; grid-auto-flow: dense; }
.portfolio-grid .project-card:nth-child(6n+1) { grid-column: span 2; }
.portfolio-grid .project-card:nth-child(6n+1) .thumb { aspect-ratio: 16/9; }
.project-card { overflow: hidden; cursor: pointer; }
.project-card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); }
.project-card .thumb::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 26px; z-index: 1;
  background: var(--bg-2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.project-card .thumb::after {
  content: "";
  position: absolute; top: 12px; left: 14px; z-index: 2;
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff5f57;
  box-shadow: 12px 0 0 #febc2e, 24px 0 0 #28c840;
}
.project-card .thumb img { width: 100%; height: calc(100% - 26px); margin-top: 26px; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.project-card:hover .thumb img { transform: scale(1.06); }
.project-card .tag {
  position: absolute; top: 38px; left: 12px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(6,8,16,0.7); backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong); color: var(--blue-bright);
}
.project-card .concept-flag {
  position: absolute; top: 38px; right: 12px;
  padding: 5px 10px; border-radius: 999px;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.03em;
  background: rgba(139,92,246,0.18); border: 1px solid rgba(139,92,246,0.4); color: var(--violet-soft);
}
.project-card .body { padding: 18px 4px 4px; }
.project-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.project-card p { font-size: 0.85rem; color: var(--text-2); margin-bottom: 12px; }
.project-card .view-link { font-size: 0.83rem; font-weight: 600; color: var(--blue-bright); display: inline-flex; align-items: center; gap: 6px; }

/* Small strip cards on homepage (compact) */
.strip-card { overflow: hidden; }
.strip-card .thumb { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.strip-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.strip-card:hover .thumb img { transform: scale(1.08); }
.strip-card .thumb::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(6,8,16,0) 45%, rgba(6,8,16,0.92) 100%); }
.strip-card .label { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; }
.strip-card .label .tag { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue-bright); font-weight: 700; }
.strip-card .label strong { display: block; font-size: 0.92rem; color: var(--text-0); margin-top: 4px; }

/* Why work with us */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-item { padding: 26px; display: flex; gap: 16px; align-items: flex-start; transition: transform var(--dur-mid) var(--ease), border-color var(--dur-mid) var(--ease), background var(--dur-mid) var(--ease); }
.why-item .ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}
.why-item:hover .ico { transform: scale(1.12) rotate(-6deg); box-shadow: 0 8px 20px rgba(61,123,255,0.35); }
.why-item h3 { font-size: 1rem; margin-bottom: 6px; }
.why-item p { font-size: 0.85rem; color: var(--text-2); }

/* Why work with — visual layout */
.why-visual-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 52px; align-items: center; }
.why-visual-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-glow);
}
.why-visual-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.why-visual-image:hover img { transform: scale(1.05); }
.why-benefit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 28px; position: relative; }
.why-benefit-row { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid var(--border); transition: transform var(--dur-mid) var(--ease); }
.why-benefit-row:hover { transform: translateX(3px); }
.why-benefit-row:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
.why-benefit-row .ico {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}
.why-benefit-row:hover .ico { transform: scale(1.12) rotate(-6deg); box-shadow: 0 8px 20px rgba(61,123,255,0.35); }
.why-benefit-row h3 { font-size: 0.95rem; margin-bottom: 5px; }
.why-benefit-row p { font-size: 0.83rem; color: var(--text-2); }

/* ---------- Blog ---------- */
.blog-hero { padding: clamp(120px, 16vw, 160px) 0 40px; text-align: center; }
.blog-hero .journal-kicker { font-family: "Sora", sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; color: var(--blue-bright); text-transform: uppercase; margin-bottom: 18px; }
.blog-hero h1 { max-width: 720px; margin: 0 auto; }
.blog-hero p.lead { max-width: 560px; margin: 18px auto 0; }

.blog-filter-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { overflow: hidden; display: flex; flex-direction: column; }
.blog-card-thumb { position: relative; display: block; aspect-ratio: 16/11; overflow: hidden; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.blog-card:hover .blog-card-thumb img { transform: scale(1.06); }
.blog-card-category {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(6,8,16,0.7); backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong); color: var(--blue-bright);
}
.blog-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-meta { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-3); }
.blog-card-meta .dot-sep { opacity: 0.6; }
.blog-card h3 { font-size: 1.12rem; line-height: 1.35; }
.blog-card h3 a { color: var(--text-0); transition: color var(--dur-fast) var(--ease); }
.blog-card h3 a:hover { color: var(--blue-bright); }
.blog-card p { font-size: 0.88rem; color: var(--text-2); flex: 1; }

.blog-featured { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--border); }
.blog-featured .blog-featured-thumb { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.blog-featured .blog-featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured .badge-soft { margin-bottom: 16px; }
.blog-featured h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.blog-featured p { color: var(--text-2); margin-bottom: 20px; }

/* Article page */
.article-hero { padding: clamp(120px, 15vw, 150px) 0 0; }
.article-meta-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 0.84rem; color: var(--text-3); margin: 20px 0 26px; }
.article-hero h1 { max-width: 780px; margin: 0 auto; text-align: center; }
.article-featured-img { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-soft); aspect-ratio: 16/8; margin: 36px 0; }
.article-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 720px; margin: 0 auto; }
.article-body h2 { font-size: 1.5rem; margin: 40px 0 16px; }
.article-body h3 { font-size: 1.18rem; margin: 30px 0 12px; }
.article-body p { font-size: 1.04rem; line-height: 1.8; color: var(--text-1); margin-bottom: 20px; }
.article-body img { border-radius: var(--radius-md); margin: 28px 0; }
.article-body a { color: var(--blue-bright); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; color: var(--text-1); }
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-cta { max-width: 720px; margin: 48px auto 0; padding: 32px; text-align: center; }
.related-posts { margin-top: 64px; }
.author-row { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 8px; }
.author-row .avatar-fallback { width: 36px; height: 36px; font-size: 0.76rem; }

/* Reviews — static grid, max 3 cards, no carousel/auto-slide */
.reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}
.review-card {
  padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.review-card .stars { display: flex; gap: 3px; color: #ffb648; }
.review-card .stars svg { width: 14px; height: 14px; }
.review-card p.quote { font-size: 0.92rem; color: var(--text-1); flex: 1; }
.review-card .who { display: flex; align-items: center; gap: 12px; padding-top: 8px; border-top: 1px solid var(--border); }
.avatar-photo {
  position: relative;
  width: 48px; height: 48px; border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(139,92,246,0.18), 0 0 0 4px rgba(61,123,255,0.06);
}
.avatar-photo img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border-strong);
  display: block;
}
.avatar-fallback {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.88rem; font-family: "Sora", sans-serif;
  flex-shrink: 0;
  border: 2px solid var(--border-strong);
}
.review-card .who strong { display: block; font-size: 0.88rem; color: var(--text-0); }
.review-card .who span { font-size: 0.76rem; color: var(--text-3); }
.demo-note { text-align: center; font-size: 0.78rem; color: var(--text-3); margin-top: 20px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 4px 24px; transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.faq-item[open] { background: var(--card-hover); border-color: var(--border-strong); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.98rem; color: var(--text-0);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 12px; height: 12px;
  transform: translateY(-50%);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%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' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--text-3);
  transition: transform var(--dur-fast) var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); color: var(--blue-bright); }
.faq-item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
.faq-item p { color: var(--text-2); font-size: 0.92rem; line-height: 1.7; padding: 0 0 22px; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.about-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/4.8; }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-list { display: flex; flex-direction: column; gap: 18px; margin: 28px 0 32px; }
.about-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.95rem; color: var(--text-1); }
.about-list li svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--blue-bright); margin-top: 2px; }
.about-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.about-badges .pill { padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-size: 0.82rem; color: var(--text-1); }

/* CTA band */
.cta-band {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: clamp(48px, 7vw, 80px);
  margin: 0 24px;
  max-width: calc(var(--container) + 48px);
  margin-inline: auto;
  isolation: isolate;
}
.cta-band .bg-img { position: absolute; inset: 0; z-index: -2; }
.cta-band .bg-img img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .bg-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(6,8,16,0.94) 20%, rgba(10,14,26,0.75) 70%); }
.cta-band-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--text-2); max-width: 480px; margin-bottom: 0; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-mini-list { display: flex; flex-direction: column; gap: 16px; }
.cta-mini-list .item { display: flex; align-items: center; gap: 12px; font-size: 0.88rem; color: var(--text-1); }
.cta-mini-list .item .ico { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,0.06); border: 1px solid var(--border-strong); display:flex; align-items:center; justify-content:center; color: var(--blue-bright); flex-shrink:0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--text-1); }
.field input, .field select, .field textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-0);
  font-size: 0.94rem;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: rgba(61,123,255,0.06);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238891a7' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-note { font-size: 0.78rem; color: var(--text-3); margin-top: 4px; }

/* ---------- Field error state ---------- */
.field.has-error input, .field.has-error textarea, .field.has-error .custom-select-trigger { border-color: #ff5a5a; background: rgba(255,90,90,0.05); }
.field-error-msg { font-size: 0.78rem; color: #ff9d9d; margin-top: 2px; display: none; }
.field.has-error .field-error-msg { display: block; }

/* ---------- Custom select (dark dropdown) ---------- */
.custom-select { position: relative; min-width: 0; }
.custom-select-trigger {
  width: 100%;
  min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-0);
  font-size: 0.94rem;
  text-align: left;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.custom-select-trigger:hover { border-color: var(--border-strong); }
.custom-select-trigger:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.custom-select.open .custom-select-trigger { border-color: var(--blue); background: rgba(61,123,255,0.06); }
.custom-select.has-error .custom-select-trigger { border-color: #ff5a5a; background: rgba(255,90,90,0.05); }
.custom-select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 auto; }
.custom-select-value.is-placeholder { color: var(--text-3); }
.custom-select-arrow { width: 14px; height: 14px; color: var(--text-2); flex-shrink: 0; transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.custom-select.open .custom-select-arrow { transform: rotate(180deg); color: var(--blue-bright); }

.custom-select-menu {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 6px;
  max-height: 260px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
}
.custom-select.open .custom-select-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.custom-select-menu:focus { outline: none; }
.custom-select-option {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-1);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.custom-select-option.is-active { background: rgba(255,255,255,0.07); color: var(--text-0); }
.custom-select-option.is-selected { color: var(--blue-bright); font-weight: 600; background: rgba(61,123,255,0.1); }
.custom-select-menu::-webkit-scrollbar { width: 8px; }
.custom-select-menu::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }

/* ---------- Form success panel (premium animated sequence) ---------- */
#form-wrap { transition: opacity 0.35s ease, transform 0.35s ease; }
#form-wrap.form-wrap-exit { opacity: 0; transform: translateY(-14px); pointer-events: none; }
#form-wrap.hidden { display: none; }

.success-panel { position: relative; text-align: center; padding: 36px 20px 8px; overflow: hidden; border-radius: var(--radius-md); }
.success-panel.hidden { display: none; }

.success-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.success-bg::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgba(61,123,255,0.14), transparent 70%),
              radial-gradient(50% 40% at 100% 100%, rgba(139,92,246,0.1), transparent 70%);
}
.success-grid-line {
  position: absolute; top: 30%; left: -10%; right: -10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 50%, transparent);
  transform: rotate(-3deg);
}
.success-sweep {
  position: absolute; inset: -20%; z-index: 0;
  background: linear-gradient(100deg, transparent 44%, rgba(139,197,255,0.08) 49%, rgba(139,197,255,0.11) 50%, rgba(139,197,255,0.08) 51%, transparent 56%);
  animation: success-sweep-move 3.5s ease-in-out infinite;
}
@keyframes success-sweep-move {
  0%, 100% { transform: translateX(-40%); }
  50% { transform: translateX(40%); }
}

.success-icon-wrap { position: relative; width: 100px; height: 100px; margin: 0 auto 22px; z-index: 1; }
.success-ring { width: 100%; height: 100%; overflow: visible; }
.success-ring-track { fill: none; stroke: var(--border); stroke-width: 3; }
.success-ring-draw {
  fill: none; stroke: var(--blue-bright); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 264; stroke-dashoffset: 264;
  transform: rotate(-90deg); transform-origin: 50% 50%;
}
.success-check {
  fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 60; stroke-dashoffset: 60;
}
.success-glow-pulse {
  position: absolute; inset: -20px; border-radius: 50%;
  background: radial-gradient(circle, rgba(61,123,255,0.4), rgba(139,92,246,0.15) 55%, transparent 75%);
  opacity: 0; transform: scale(0.6);
}
.success-fragment {
  position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue-bright); opacity: 0;
}
.success-fragment.f2, .success-fragment.f4, .success-fragment.f6 { background: var(--violet-soft); }

.success-status-label {
  display: inline-block; font-family: "Sora", sans-serif; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-bright);
  opacity: 0; transform: translateY(8px);
}
.success-heading { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 12px 0 14px; opacity: 0; transform: translateY(10px); }
.success-copy { color: var(--text-1); font-size: 1rem; max-width: 460px; margin: 0 auto 10px; opacity: 0; transform: translateY(10px); }
.success-microline { font-size: 0.84rem; color: var(--text-3); margin-bottom: 18px; opacity: 0; transform: translateY(8px); }
.success-brandline {
  font-family: "Sora", sans-serif; font-style: italic; font-size: 0.95rem;
  background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 28px; opacity: 0; transform: translateY(8px);
}

.success-journey { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 30px; opacity: 0; transform: translateY(10px); }
.journey-step { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; color: var(--text-3); white-space: nowrap; }
.journey-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0; }
.journey-step.done { color: var(--text-1); }
.journey-step.done .journey-dot { background: #35d07f; }
.journey-step.active { color: var(--blue-bright); font-weight: 600; }
.journey-step.active .journey-dot { background: var(--blue-bright); animation: journey-pulse 1.8s ease-in-out infinite; }
@keyframes journey-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,123,255,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(61,123,255,0); }
}
.journey-line { width: 20px; height: 1px; background: var(--border-strong); }

.success-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; opacity: 0; transform: translateY(10px); }
.success-back-link { display: inline-block; margin: 18px 0 6px; font-size: 0.84rem; color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; opacity: 0; }
.success-back-link:hover { color: var(--text-1); }

/* Entrance choreography, ~1.6s total */
.success-panel.animate-in .success-ring-draw { animation: ring-draw 0.7s ease forwards; }
.success-panel.animate-in .success-check { animation: check-draw 0.45s ease forwards 0.35s; }
.success-panel.animate-in .success-glow-pulse { animation: glow-pulse 0.7s ease forwards 0.45s; }
.success-panel.animate-in .success-fragment { animation: fragment-burst 0.6s ease forwards 0.5s; }
.success-panel.animate-in .success-fragment.f1 { --tx: -38px; --ty: -18px; }
.success-panel.animate-in .success-fragment.f2 { --tx: 40px; --ty: -22px; }
.success-panel.animate-in .success-fragment.f3 { --tx: -44px; --ty: 20px; }
.success-panel.animate-in .success-fragment.f4 { --tx: 42px; --ty: 24px; }
.success-panel.animate-in .success-fragment.f5 { --tx: 0px; --ty: -46px; }
.success-panel.animate-in .success-fragment.f6 { --tx: 4px; --ty: 46px; }
.success-panel.animate-in .success-status-label { animation: rise-in 0.4s ease forwards 0.6s; }
.success-panel.animate-in .success-heading { animation: rise-in 0.45s ease forwards 0.75s; }
.success-panel.animate-in .success-copy { animation: rise-in 0.45s ease forwards 0.9s; }
.success-panel.animate-in .success-microline { animation: rise-in 0.4s ease forwards 1.02s; }
.success-panel.animate-in .success-brandline { animation: rise-in 0.4s ease forwards 1.12s; }
.success-panel.animate-in .success-journey { animation: rise-in 0.45s ease forwards 1.25s; }
.success-panel.animate-in .success-actions { animation: rise-in 0.45s ease forwards 1.42s; }
.success-panel.animate-in .success-back-link { animation: fade-in-only 0.4s ease forwards 1.55s; }

@keyframes ring-draw { to { stroke-dashoffset: 0; } }
@keyframes check-draw { to { stroke-dashoffset: 0; } }
@keyframes glow-pulse { 0% { opacity: 0; transform: scale(0.6); } 50% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3); } }
@keyframes fragment-burst {
  0% { opacity: 1; transform: translate(-50%, -50%) translate(0, 0); }
  100% { opacity: 0; transform: translate(-50%, -50%) translate(var(--tx), var(--ty)); }
}
@keyframes rise-in { to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in-only { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .success-panel .success-ring-draw, .success-panel .success-check, .success-panel .success-glow-pulse,
  .success-panel .success-fragment, .success-panel .success-status-label, .success-panel .success-heading,
  .success-panel .success-copy, .success-panel .success-microline, .success-panel .success-brandline,
  .success-panel .success-journey, .success-panel .success-actions, .success-panel .success-back-link {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
  .success-panel .success-ring-draw { stroke-dashoffset: 0; }
  .success-panel .success-check { stroke-dashoffset: 0; }
  .success-sweep { animation: none; }
}
@media (max-width: 480px) {
  .success-actions { flex-direction: column; }
  .success-actions .btn { width: 100%; }
}

/* ---------- Submission failure panel ---------- */
.submit-error-panel { margin-top: 16px; padding: 18px 20px; border-radius: var(--radius-sm); background: rgba(255,90,90,0.06); border: 1px solid rgba(255,90,90,0.3); }
.submit-error-panel.hidden { display: none; }
.submit-error-panel strong { display: block; color: #ff9d9d; font-size: 0.95rem; margin-bottom: 4px; }
.submit-error-panel p { color: var(--text-2); font-size: 0.88rem; margin-bottom: 14px; }
.submit-error-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-top: 6px; display: none; }
.form-status.show { display: block; }
.form-status.success { background: rgba(53,208,127,0.1); border: 1px solid rgba(53,208,127,0.3); color: #5ee6a0; }
.form-status.error { background: rgba(255,90,90,0.1); border: 1px solid rgba(255,90,90,0.3); color: #ff9d9d; }

/* Contact page layout */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info-card { padding: 30px; display: flex; flex-direction: column; gap: 22px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--gradient-accent); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.contact-info-item strong { display: block; font-size: 0.92rem; color: var(--text-0); margin-bottom: 2px; }
.contact-info-item span, .contact-info-item a { font-size: 0.88rem; color: var(--text-2); }
.contact-info-item a:hover { color: var(--blue-bright); }
.form-card { padding: 34px; }

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-1) 0%, #0c1120 55%, var(--bg-0) 100%);
  padding: 80px 0 30px;
  isolation: isolate;
}
.site-footer::before {
  /* gradient top border, brighter than a flat 1px line */
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(61,123,255,0.7) 35%, rgba(139,92,246,0.75) 65%, transparent 95%);
  z-index: 2;
}
.footer-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.footer-glow span { position: absolute; border-radius: 50%; filter: blur(70px); }
.footer-glow span:nth-child(1) { top: -12%; left: -6%; width: 46%; height: 90%; background: radial-gradient(circle, rgba(61,123,255,0.22), transparent 70%); }
.footer-glow span:nth-child(2) { bottom: -25%; right: -8%; width: 42%; height: 85%; background: radial-gradient(circle, rgba(139,92,246,0.2), transparent 70%); }
.footer-glow span:nth-child(3) { bottom: -60%; left: 30%; width: 40%; height: 70%; background: radial-gradient(circle, rgba(61,123,255,0.12), transparent 70%); }
.site-footer .container { position: relative; z-index: 1; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 52px; }

.footer-brand { position: relative; }
.footer-brand .logo { font-size: 1.4rem; position: relative; display: inline-flex; }
.footer-brand .logo .mark {
  box-shadow: 0 0 0 1px rgba(139,92,246,0.25), 0 10px 30px rgba(61,123,255,0.5);
  transition: box-shadow var(--dur-mid) var(--ease);
}
.footer-brand .logo:hover .mark { box-shadow: 0 0 0 1px rgba(139,92,246,0.4), 0 12px 36px rgba(61,123,255,0.65); }
.footer-brand p {
  font-size: 0.92rem; color: var(--text-2); margin: 20px 0 0; max-width: 300px; line-height: 1.75;
  padding-left: 14px; border-left: 2px solid rgba(61,123,255,0.35);
}

.footer-col h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-1);
  margin-bottom: 20px; position: relative; padding-bottom: 12px; font-weight: 700;
}
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--gradient-accent); border-radius: 2px; box-shadow: 0 0 8px rgba(61,123,255,0.6); }
.footer-col ul { display: flex; flex-direction: column; gap: 13px; }
.footer-col > ul > li > a {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.9rem; color: var(--text-2);
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.footer-col > ul > li > a::before {
  content: ""; width: 0; height: 1px; background: var(--blue-bright);
  transition: width var(--dur-mid) var(--ease); flex-shrink: 0;
}
.footer-col > ul > li > a:hover { color: var(--text-0); transform: translateX(4px); }
.footer-col > ul > li > a:hover::before { width: 10px; }

.footer-contact-list li { display: flex; align-items: center; gap: 11px; }
.footer-contact-ico {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; color: var(--blue-bright);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.footer-contact-ico svg { width: 14px; height: 14px; }
.footer-contact-list li:hover .footer-contact-ico { background: var(--gradient-accent); color: #fff; transform: scale(1.06); border-color: transparent; }
.footer-contact-list li a { font-size: 0.87rem; transition: color var(--dur-fast) var(--ease); }
.footer-contact-list li:hover a { color: var(--text-0); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; margin-top: 6px;
  position: relative;
  font-size: 0.8rem; color: var(--text-3); flex-wrap: wrap; gap: 16px;
}
.footer-bottom::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 30%, var(--border-strong) 70%, transparent);
}
.footer-bottom a { color: var(--text-3); transition: color var(--dur-fast) var(--ease); }
.footer-bottom a:hover { color: var(--text-1); }
.footer-legal-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Honeypot — visually hidden from humans, still present in the DOM for bots */
.hp-field {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; left: -9999px;
}

.footer-cta-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 24px; border-radius: 999px;
  background: rgba(61,123,255,0.1);
  border: 1px solid rgba(139,92,246,0.4);
  color: var(--text-0) !important;
  font-weight: 600; font-size: 0.85rem;
  box-shadow: 0 0 0 1px rgba(61,123,255,0.08), 0 6px 22px rgba(61,123,255,0.18);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.footer-cta-btn svg { width: 13px; height: 13px; transition: transform var(--dur-fast) var(--ease); }
.footer-cta-btn:hover {
  background: var(--gradient-accent); border-color: transparent; color: #fff !important;
  transform: translateY(-2px); box-shadow: 0 10px 28px rgba(61,123,255,0.45);
}
.footer-cta-btn:hover svg { transform: translateX(3px); }

@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-cta-btn { width: 100%; justify-content: center; }
}

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal="fade"] { transform: none; }
[data-reveal-group] > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal-group].in-view > * { opacity: 1; transform: translateY(0); }
[data-reveal-group].in-view > *:nth-child(1) { transition-delay: 0.02s; }
[data-reveal-group].in-view > *:nth-child(2) { transition-delay: 0.09s; }
[data-reveal-group].in-view > *:nth-child(3) { transition-delay: 0.16s; }
[data-reveal-group].in-view > *:nth-child(4) { transition-delay: 0.23s; }
[data-reveal-group].in-view > *:nth-child(5) { transition-delay: 0.3s; }
[data-reveal-group].in-view > *:nth-child(6) { transition-delay: 0.37s; }

/* ---------- Cursor glow (desktop only) ---------- */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,123,255,0.14), rgba(139,92,246,0.06) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: opacity 0.6s ease, width 0.5s var(--ease), height 0.5s var(--ease);
}
.cursor-glow.cursor-glow-expand {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(61,123,255,0.2), rgba(139,92,246,0.09) 45%, transparent 70%);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(120px, 16vw, 160px) 0 60px; position: relative; }
.page-hero::before { content:""; position:absolute; inset:-10% -10% auto -10%; height: 520px; background: var(--gradient-radial); z-index:0; pointer-events:none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { justify-content: center; }
.page-hero.center { text-align: center; }
.page-hero.center .eyebrow { justify-content: center; }
.page-hero p.lead { max-width: 620px; margin: 18px auto 0; color: var(--text-2); font-size: 1.05rem; }
.breadcrumb { display:flex; align-items:center; gap:8px; font-size:0.8rem; color: var(--text-3); justify-content:center; margin-bottom: 18px; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--text-1); }

/* ---------- Modal (case study) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4,6,12,0.82);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-mid) var(--ease), visibility var(--dur-mid);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 780px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  transform: translateY(24px) scale(0.98);
  transition: transform var(--dur-mid) var(--ease);
  box-shadow: var(--shadow-soft);
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
.modal-box .modal-img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.modal-body { padding: 30px 34px 34px; }
.modal-body .tag-row { display:flex; gap:10px; margin-bottom: 14px; }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(6,8,16,0.7); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; color: var(--text-0);
  z-index: 2;
}
.modal-relative { position: relative; }
.case-block { margin-bottom: 20px; }
.case-block h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-bright); margin-bottom: 8px; }
.case-block p { font-size: 0.92rem; color: var(--text-1); }
.case-block ul { display: flex; flex-direction: column; gap: 6px; }
.case-block ul li { font-size: 0.9rem; color: var(--text-1); display:flex; gap:8px; }
.case-block ul li::before { content: "—"; color: var(--text-3); }

/* ---------- 404 ---------- */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.error-page .code { font-family: "Sora", sans-serif; font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.badge-soft {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.3);
  font-size: 0.72rem; font-weight: 700; color: var(--violet-soft); letter-spacing: 0.03em;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .editorial-card { aspect-ratio: 4 / 3.3; }
  /* Pills move out of the image overlay entirely below tablet/desktop width — a
     separate wrapping row below the card, so they can never sit on top of the
     heading/paragraph/CTA (the tall-narrow card here doesn't leave room for both
     an absolute top-right pill stack and a bottom text overlay at once). */
  .editorial-labels {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
  }
  .editorial-label { padding: 7px 12px 7px 9px; font-size: 0.72rem; transform: translateY(8px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-strip { grid-template-columns: repeat(3, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-visual-grid { grid-template-columns: 1fr; gap: 36px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-featured { grid-template-columns: 1fr; }
  .why-visual-image { max-width: 420px; margin: 0 auto; aspect-ratio: 16/10; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 420px; margin: 0 auto; aspect-ratio: 4/3.2; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .editorial-card { aspect-ratio: 4 / 3.9; }
  .editorial-content { max-width: none; padding: 20px 18px; }
  .editorial-content p { max-width: none; }
  .editorial-glow { inset: -10px; }
  .nav-links { display: none; }
  .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding-top: 110px; }
  .services-grid, .portfolio-strip, .portfolio-grid, .why-grid, .blog-grid { grid-template-columns: 1fr; }
  .portfolio-grid .project-card:nth-child(6n+1) { grid-column: span 1; }
  .portfolio-grid .project-card:nth-child(6n+1) .thumb { aspect-ratio: 4/3; }
  .why-benefit-list { grid-template-columns: 1fr; gap: 20px; }
  .why-benefit-row { border-bottom: 1px solid var(--border); padding-bottom: 20px; }
  .why-benefit-row:last-child { border-bottom: none; padding-bottom: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-band { margin: 0 16px; padding: 40px 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cursor-glow { display: none; }
  .container { padding: 0 18px; }

  /* Lighter shadows/blurs on mobile: cheaper to paint and composite while scrolling,
     without removing the premium feel entirely. --shadow-* are used across most cards. */
  :root {
    --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 0 1px rgba(139, 92, 246, 0.12), 0 10px 26px rgba(61, 123, 255, 0.12);
  }
  .site-header.is-scrolled { backdrop-filter: blur(10px) saturate(140%); }
  .mobile-nav { backdrop-filter: blur(14px); }
  .note-card { backdrop-filter: blur(10px); }
  .code-mockup { backdrop-filter: blur(8px); }
}
