/* ============================================
   LegitVA — Premium Digital Agency
   Core Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Brand palette extracted and optimized from logo color scheme */
  --bg-void: #000000;
  --bg-deep: #050508;
  --bg-elevated: #09090f;
  --bg-card: #0d0d16;
  --border-faint: rgba(255, 255, 255, 0.05);
  --border-soft: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(6, 182, 212, 0.35);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.48);
  --text-faint: rgba(255, 255, 255, 0.25);
  --text-2: var(--text-secondary);
  --text-3: var(--text-muted);

  --brand-blue: #3B82F6;
  --brand-blue-light: #22D3EE;
  --brand-blue-glow: #8FEEFC;
  --brand-blue-deep: #0891B2;
  --brand-cyan: #06B6D4;
  --brand-cyan-light: #67E8F9;
  --brand-purple: #8B5CF6;
  --brand-purple-light: #A78BFA;
  --brand: var(--brand-cyan);

  --gradient-brand: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue-light) 50%, var(--brand-purple-light) 100%);
  --gradient-radial: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.2) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 80%);
  --gradient-mesh: radial-gradient(at 15% 15%, rgba(6, 182, 212, 0.16) 0px, transparent 50%),
                   radial-gradient(at 85% 15%, rgba(139, 92, 246, 0.14) 0px, transparent 50%),
                   radial-gradient(at 50% 85%, rgba(59, 130, 246, 0.15) 0px, transparent 50%);

  --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.25), 0 0 80px rgba(139, 92, 246, 0.15);
  --shadow-card: 0 24px 64px -16px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --shadow-deep: 0 40px 100px -20px rgba(0, 0, 0, 0.85);

  --font-display: 'Instrument Serif', serif;
  --font-sans: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1320px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
}

/* Custom Scrollbar for Premium Feel */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  border: 2px solid var(--bg-void);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-cyan);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 900px) {
  body { cursor: auto; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection {
  background: var(--brand-blue);
  color: white;
}

/* ============================================
   Custom cursor
   ============================================ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  top: 0;
  left: 0;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: white;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease-out), height .25s var(--ease-out);
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.6);
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease-out), height .35s var(--ease-out), border-color .25s;
}
.cursor-hover .cursor-dot { width: 0; height: 0; }
.cursor-hover .cursor-ring {
  width: 60px;
  height: 60px;
  border-color: var(--brand-blue-light);
  background: rgba(59,130,246,0.08);
}
@media (max-width: 900px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================
   Page loader
   ============================================ */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-void);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
}
.loader-logo {
  font-family: var(--font-sans);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  gap: 4px;
  opacity: 0;
}
.loader-logo .accent { color: var(--brand-blue-light); }
.loader-bar {
  width: 200px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
  position: relative;
}
.loader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  transform: translateX(-100%);
  animation: loadBar 1.4s var(--ease-in-out) forwards;
}
@keyframes loadBar {
  to { transform: translateX(0); }
}
.loader-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ============================================
   Background canvas / grid
   ============================================ */
.bg-grid {
  position: fixed;
  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: 80px 80px;
  z-index: -2;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}
.bg-glow {
  position: fixed;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: var(--gradient-radial);
  z-index: -1;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.6;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

section {
  position: relative;
  padding: 140px 0;
}
@media (max-width: 720px) {
  section { padding: 80px 0; }
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 48px);
  max-width: 1280px;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  padding: 12px 14px 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform .4s var(--ease-out);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-logo .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue-light);
  box-shadow: 0 0 12px var(--brand-blue);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}
.nav-logo .accent { color: var(--brand-blue-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 100px;
  transition: color .3s, background .3s;
  position: relative;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.12);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--text-primary);
  color: var(--bg-void);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,255,255,0.15);
}
.nav-cta .arrow {
  width: 14px;
  height: 14px;
  transition: transform .3s var(--ease-out);
}
.nav-cta:hover .arrow { transform: translate(2px, -2px); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.nav-toggle span {
  width: 18px;
  height: 1.5px;
  background: white;
  position: relative;
  transition: .3s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: white;
  transition: .3s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open span::after { transform: rotate(-45deg); top: 0; }

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    padding: 16px;
    gap: 4px;
  }
  .nav-links.mobile-open a {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 16px;
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform .4s var(--ease-out), background .3s, box-shadow .3s, color .3s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-void);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity .4s;
  z-index: 0;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { color: white; transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.btn-primary > * { position: relative; z-index: 1; }

.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-bright);
  transform: translateY(-3px);
}

.btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform .3s var(--ease-out);
}
.btn:hover .btn-arrow { transform: translate(3px, -3px); }

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  padding-top: 180px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.3), transparent 60%);
  filter: blur(80px);
  top: 50%;
  right: -20%;
  transform: translateY(-50%);
  z-index: -1;
  animation: orbFloat 12s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-45%) translateX(-40px); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  backdrop-filter: blur(20px);
}
.eyebrow .ping {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue-light);
  position: relative;
  box-shadow: 0 0 8px var(--brand-blue);
}
.eyebrow .ping::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--brand-blue-light);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(48px, 8.5vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 28px 0 32px;
}
.hero h1 .serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .reveal-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hero h1 .reveal-word > span {
  display: inline-block;
  transform: translateY(110%);
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 48px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border-faint);
  flex-wrap: wrap;
}
.hero-meta-item .num {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-meta-item .lbl {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.hero-scroll .line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--brand-blue-light));
  position: relative;
}
.hero-scroll .line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-blue-light);
  box-shadow: 0 0 8px var(--brand-blue);
  animation: scrollDot 2.5s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 45px; opacity: 0; }
}

/* ============================================
   Marquee
   ============================================ */
.marquee {
  padding: 32px 0;
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
  overflow: hidden;
  background: rgba(255,255,255,0.01);
}
.marquee-track {
  display: flex;
  gap: 80px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 32px;
  font-style: italic;
  color: var(--text-muted);
}
.marquee-item .star {
  color: var(--brand-blue-light);
  font-style: normal;
  font-family: var(--font-sans);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================
   Section headings
   ============================================ */
.section-head {
  margin-bottom: 80px;
  max-width: 800px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-blue-light);
  margin-bottom: 24px;
}
.section-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--brand-blue-light);
}
.section-title {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.section-title .serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-blue-light);
}
.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: 24px;
  max-width: 560px;
  line-height: 1.6;
}

/* ============================================
   Service cards
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .4s, box-shadow .4s;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(6, 182, 212, 0.15) 0%, rgba(139, 92, 246, 0.08) 50%, transparent 80%);
  opacity: 0;
  transition: opacity .5s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-bright);
  box-shadow: 0 20px 40px -15px rgba(6, 182, 212, 0.2), 0 0 50px -10px rgba(139, 92, 246, 0.15);
}
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
}
.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--brand-blue-light);
  fill: none;
  stroke-width: 1.5;
}

.service-card h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}
.service-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.service-card .arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-blue-light);
  letter-spacing: 0.02em;
  margin-top: auto;
}
.service-card .arrow-link svg {
  width: 14px;
  height: 14px;
  transition: transform .3s var(--ease-out);
}
.service-card:hover .arrow-link svg { transform: translate(4px, -4px); }

.service-num {
  position: absolute;
  top: 28px;
  right: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}

/* ============================================
   Stats
   ============================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
}
@media (max-width: 720px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat-cell {
  padding: 48px 32px;
  border-right: 1px solid var(--border-faint);
  position: relative;
  overflow: hidden;
}
.stat-cell:last-child { border-right: none; }
@media (max-width: 720px) {
  .stat-cell:nth-child(2n) { border-right: none; }
  .stat-cell:nth-child(-n+2) { border-bottom: 1px solid var(--border-faint); }
}
.stat-cell .num {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-style: italic;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-cell .lbl {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* ============================================
   Process timeline
   ============================================ */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-faint);
}
.process-item {
  display: grid;
  grid-template-columns: 100px 1fr 2fr 60px;
  gap: 32px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border-faint);
  align-items: start;
  position: relative;
  transition: padding .4s var(--ease-out), background-color .4s;
  cursor: pointer;
}
.process-item > * { position: relative; z-index: 1; }
@media (max-width: 720px) {
  .process-item { grid-template-columns: 60px 1fr; padding: 32px 0; }
  .process-item .process-desc { grid-column: 1 / -1; }
  .process-item .process-icon { display: none; }
}
.process-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 0;
  width: 1px;
  background: var(--gradient-brand);
  transition: height .6s var(--ease-out);
  z-index: 2;
}
.process-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  z-index: 0;
}
.process-item:hover::before { height: 100%; }
.process-item:hover::after { opacity: 1; }
.process-item:hover { padding-left: 24px; }
.process-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-blue-light);
  letter-spacing: 0.1em;
}
.process-title {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.process-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}
.process-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: background .3s, border-color .3s, transform .3s;
}
.process-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
  transition: stroke .3s, transform .3s;
}
.process-item:hover .process-icon {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  transform: rotate(45deg);
}
.process-item:hover .process-icon svg { stroke: white; }

/* ============================================
   Testimonials
   ============================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 720px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-lg);
  position: relative;
  transition: border-color .4s, transform .4s var(--ease-out), box-shadow .4s;
}
.testimonial:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -10px rgba(6, 182, 212, 0.15), 0 0 40px -15px rgba(139, 92, 246, 0.1);
}
.testimonial .stars {
  color: var(--brand-blue-light);
  margin-bottom: 24px;
  font-size: 16px;
  letter-spacing: 4px;
}
.testimonial p {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  color: var(--text-primary);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-faint);
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.testimonial-author .name { font-weight: 500; font-size: 15px; }
.testimonial-author .role { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ============================================
   CTA section
   ============================================ */
.cta {
  position: relative;
  padding: 100px 40px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0f 0%, #0e1226 50%, #050507 100%);
  border: 1px solid var(--border-soft);
  text-align: center;
}
.cta::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.25), transparent 60%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(40px);
}
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 {
  font-size: clamp(36px, 6vw, 82px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
}
.cta h2 .serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 100px 0 40px;
  border-top: 1px solid var(--border-faint);
  position: relative;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand h3 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.footer-brand h3 .accent { color: var(--brand-blue-light); }
.footer-brand p {
  color: var(--text-secondary);
  max-width: 360px;
  font-size: 15px;
  line-height: 1.6;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  color: var(--text-secondary);
  font-size: 15px;
  transition: color .3s, padding .3s;
}
.footer-links a:hover { color: var(--brand-blue-light); padding-left: 6px; }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, border-color .3s, transform .3s;
}
.footer-socials a:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  transform: translateY(-3px);
}
.footer-socials svg { width: 16px; height: 16px; fill: var(--text-secondary); }
.footer-socials a:hover svg { fill: white; }

/* Giant brand watermark */
.footer-watermark {
  font-family: var(--font-sans);
  font-size: clamp(80px, 18vw, 260px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.85;
  text-align: center;
  background: linear-gradient(180deg, rgba(96,165,250,0.18) 0%, rgba(59,130,246,0.02) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  user-select: none;
  margin-top: 40px;
}

/* ============================================
   Page hero (interior pages)
   ============================================ */
.page-hero {
  padding: 200px 0 100px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-faint);
}
.page-hero-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.25), transparent 65%);
  filter: blur(80px);
  top: -100px;
  right: -100px;
  z-index: -1;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}
.breadcrumbs a { color: var(--text-secondary); transition: color .3s; }
.breadcrumbs a:hover { color: var(--brand-blue-light); }
.breadcrumbs .sep { color: var(--text-faint); }
.page-hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.page-hero h1 .serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero p {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.6;
}

/* ============================================
   Portfolio
   ============================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 720px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .6s var(--ease-out), border-color .4s;
  cursor: pointer;
}
.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-bright);
}
.portfolio-visual {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a14 0%, #0f1428 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(59,130,246,0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(96,165,250,0.1), transparent 50%);
}
.portfolio-visual svg {
  width: 70%;
  height: 70%;
  position: relative;
  z-index: 1;
}
.portfolio-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  transition: transform 0.8s var(--ease-out);
}
.portfolio-card:hover .portfolio-visual img,
article:hover .portfolio-visual img,
.portfolio-visual:hover img {
  transform: scale(1.05);
}
.portfolio-info {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.portfolio-info .meta { color: var(--text-muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.portfolio-info h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.portfolio-card .arrow-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, transform .3s var(--ease-out);
  flex-shrink: 0;
}
.portfolio-card:hover .arrow-circle {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  transform: rotate(45deg);
}
.portfolio-card .arrow-circle svg { width: 16px; height: 16px; stroke: white; fill: none; stroke-width: 1.5; }

/* ============================================
   Pricing
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  position: relative;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-lg);
  transition: transform .5s var(--ease-out), border-color .4s;
  display: flex;
  flex-direction: column;
}
.price-card:hover { transform: translateY(-6px); border-color: var(--border-bright); }
.price-card.featured {
  background: linear-gradient(180deg, rgba(59,130,246,0.08) 0%, var(--bg-card) 100%);
  border-color: var(--border-bright);
}
.price-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -1px;
  right: 32px;
  padding: 8px 16px;
  background: var(--gradient-brand);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0 0 12px 12px;
}
.price-tier {
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-blue-light);
  margin-bottom: 16px;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.price-amount .num {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-style: italic;
}
.price-amount .currency { font-family: var(--font-mono); font-size: 16px; color: var(--text-muted); }
.price-amount .period { color: var(--text-muted); font-size: 14px; }
.price-card .price-desc {
  color: var(--text-secondary);
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-faint);
  font-size: 14px;
  line-height: 1.6;
}
.price-features { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; flex: 1; }
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.price-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(59,130,246,0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360A5FA' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================================
   Contact form
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.contact-info h2 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.contact-info h2 .serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-blue-light);
}
.contact-info p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 40px;
}
.contact-channels { display: flex; flex-direction: column; gap: 24px; padding-top: 32px; border-top: 1px solid var(--border-faint); }
.contact-channel { display: flex; align-items: center; gap: 16px; }
.contact-channel .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-channel .ic svg { width: 18px; height: 18px; stroke: var(--brand-blue-light); fill: none; stroke-width: 1.5; }
.contact-channel .lbl { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2px; }
.contact-channel .val { font-size: 16px; font-weight: 500; }

.contact-form {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 60%);
  top: -100px;
  right: -100px;
  filter: blur(40px);
  pointer-events: none;
}
.field { margin-bottom: 20px; position: relative; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color .3s, background .3s;
}
select option {
  background-color: #09090f !important;
  color: #ffffff !important;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand-blue-light);
  background: rgba(59,130,246,0.04);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }
.form-submit {
  width: 100%;
  padding: 18px;
  margin-top: 12px;
  background: var(--gradient-brand);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform .3s, box-shadow .3s;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

/* ============================================
   Blog / Case studies
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .4s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); border-color: var(--border-bright); }
.blog-visual {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0a0a14, #1a2244);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(96,165,250,0.2), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(59,130,246,0.15), transparent 50%);
}
.blog-visual svg { width: 60%; height: 60%; opacity: 0.9; position: relative; z-index: 1; }
.blog-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.blog-meta {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.blog-meta .tag { color: var(--brand-blue-light); }
.blog-card h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.blog-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.55;
  flex: 1;
}
.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--brand-blue-light);
  margin-top: 20px;
}
.blog-card .read-more svg { width: 14px; height: 14px; transition: transform .3s; }
.blog-card:hover .read-more svg { transform: translate(3px, -3px); }

/* ============================================
   Team grid (About)
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .values-grid { grid-template-columns: 1fr; } }
.value-cell {
  padding: 40px;
  border-right: 1px solid var(--border-faint);
  transition: background .4s;
}
.value-cell:last-child { border-right: none; }
@media (max-width: 900px) {
  .value-cell:nth-child(2n) { border-right: none; }
  .value-cell:nth-child(-n+2) { border-bottom: 1px solid var(--border-faint); }
}
.value-cell:hover { background: rgba(59,130,246,0.04); }
.value-cell .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--brand-blue-light);
  margin-bottom: 32px;
}
.value-cell h4 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}
.value-cell p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; }

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; gap: 48px; } }
.about-split-text h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.about-split-text h2 .serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-blue-light);
}
.about-split-text p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-visual {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #0a0a14, #1a2244);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(96,165,250,0.3), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(59,130,246,0.25), transparent 50%);
}

/* ============================================
   Animations / utility classes
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }
.reveal.d5 { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   Portfolio — cinematic hover enhancement
   ============================================ */
.portfolio-card {
  transition: transform .6s var(--ease-out), border-color .4s, box-shadow .5s;
}
.portfolio-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-bright);
  box-shadow: 0 40px 100px -20px rgba(6, 182, 212, 0.2),
              0 0 60px -20px rgba(139, 92, 246, 0.15),
              0 0 0 1px rgba(6, 182, 212, 0.12);
}
.portfolio-visual {
  overflow: hidden;
}
.portfolio-visual img {
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s ease;
  will-change: transform;
}
.portfolio-card:hover .portfolio-visual img {
  transform: scale(1.09);
  filter: brightness(1.06) saturate(1.08);
}
.portfolio-card .arrow-circle {
  transition: background .35s, border-color .35s, transform .5s var(--ease-back);
}
.portfolio-card:hover .arrow-circle {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  transform: rotate(45deg) scale(1.1);
}

/* ============================================
   Essay / Article pages
   ============================================ */
.essay-hero {
  padding: 200px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-faint);
}
.essay-hero-orb {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22), transparent 65%);
  filter: blur(90px);
  top: -150px;
  right: -150px;
  z-index: -1;
  animation: orbFloat 14s ease-in-out infinite;
}
.essay-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.essay-meta .category { color: var(--brand-blue-light); }
.essay-meta .sep { color: var(--text-faint); }
.essay-title {
  font-family: var(--font-sans);
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 500;
  line-height: 0.97;
  letter-spacing: -0.04em;
  margin-bottom: 36px;
  max-width: 920px;
}
.essay-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.essay-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border-faint);
}
.essay-byline .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.essay-byline .name { font-size: 15px; font-weight: 500; }
.essay-byline .role { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.essay-banner {
  width: 100%;
  aspect-ratio: 21 / 9;
  background: linear-gradient(135deg, #040410 0%, #0c1535 50%, #040410 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 80px 0 0;
}
.essay-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 40%, rgba(59, 130, 246, 0.25), transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(139, 92, 246, 0.2), transparent 50%);
  pointer-events: none;
}
.essay-banner svg { position: relative; z-index: 1; }

.essay-body {
  max-width: 760px;
  margin: 0 auto;
}
.essay-lead {
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-faint);
  font-weight: 400;
}
.essay-section {
  margin-bottom: 64px;
}
.essay-section h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.essay-section h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-blue-light);
  margin-bottom: 16px;
}
.essay-section p {
  font-size: 18px;
  line-height: 1.78;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.essay-section p:last-child { margin-bottom: 0; }
.essay-section ul, .essay-section ol {
  padding-left: 22px;
  margin-bottom: 20px;
}
.essay-section li {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.essay-pullquote {
  padding: 40px 44px;
  border-left: 3px solid var(--brand-blue-light);
  background: rgba(59, 130, 246, 0.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 52px 0;
  position: relative;
}
.essay-pullquote::before {
  content: '"';
  position: absolute;
  top: -16px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 1;
  color: var(--brand-blue);
  opacity: 0.25;
  pointer-events: none;
}
.essay-pullquote p {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.45;
  font-style: italic;
  color: var(--text-primary) !important;
  margin: 0 !important;
}

.essay-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 52px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.essay-divider::before, .essay-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-faint);
}

.essay-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-blue-light);
  margin-bottom: 12px;
}

.essay-more {
  padding: 80px 0 0;
  border-top: 1px solid var(--border-faint);
  margin-top: 80px;
}
.essay-more-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-blue-light);
  margin-bottom: 32px;
}
.essay-more-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--brand-blue-light);
  vertical-align: middle;
  margin-right: 10px;
}
.essay-more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 640px) { .essay-more-grid { grid-template-columns: 1fr; } }
.essay-more-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-lg);
  transition: border-color .4s, transform .5s var(--ease-out);
  cursor: pointer;
}
.essay-more-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}
.essay-more-card .card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.essay-more-card h4 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.essay-more-card .card-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
