/* ============================================
   ISSAM BELAYACHI — DESIGN SYSTEM
   Token system: ink / blue / mesh / mono accent
   ============================================ */

:root {
  /* Color tokens */
  --ink: #0B1120;
  --ink-soft: #151E33;
  --slate: #1E293B;
  --slate-soft: #475569;
  --mist: #94A3B8;
  --primary: #3B82F6;
  --primary-dim: #2563EB;
  --secondary: #60A5FA;
  --surface: #F8FAFC;
  --surface-alt: #EFF6FF;
  --line: #E2E8F0;
  --line-ink: rgba(255,255,255,0.08);
  --white: #FFFFFF;

  /* Gradients */
  --grad-mesh: radial-gradient(120% 100% at 0% 0%, #EFF6FF 0%, #DBEAFE 45%, #F8FAFC 100%);
  --grad-blue: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --grad-ink: linear-gradient(180deg, #0B1120 0%, #131D33 100%);

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 5rem;
  --space-7: 8rem;

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-soft: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 8px 32px rgba(59, 130, 246, 0.10);
  --shadow-lift: 0 20px 50px rgba(15, 23, 42, 0.12);

  /* Easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--primary);
}

.h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
.h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.h4 { font-size: 1.15rem; }

.h1 .h1__sub {
  display: block;
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  font-style: italic;
  font-weight: 500;
  color: var(--primary);
  margin-top: 0.35rem;
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--slate-soft);
  font-weight: 400;
  max-width: 42ch;
}

.section-head {
  max-width: 640px;
  margin: 0 auto var(--space-6);
  text-align: center;
}

.section-head.left { margin: 0 0 var(--space-5); text-align: left; }

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (max-width: 640px) {
  .container { padding: 0 var(--space-3); }
}

.section { padding: var(--space-7) 0; position: relative; }

@media (max-width: 768px) {
  .section { padding: var(--space-6) 0; }
}

.section--dark {
  background: var(--grad-ink);
  color: var(--mist);
}

.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 {
  color: var(--white);
}

.section--mesh { background: var(--grad-mesh); }

/* ============================================
   NAV
   ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 1rem;
  pointer-events: none;
  transition: padding var(--ease) 0.3s;
}

.nav.scrolled {
  padding: 0.75rem 1rem;
}

.nav.scrolled .nav__inner {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  border-color: var(--line);
}

.nav__inner {
  pointer-events: auto;
  background: var(--white);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft);
  padding: 0.8rem 2rem !important;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all var(--ease) 0.3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.nav__logo .logo-first {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav__logo .logo-last {
  font-size: 0.7rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-top: 0.05rem;
}

.footer__brand .nav__logo .logo-last { color: var(--secondary); }

.nav__links {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate-soft);
}

.nav__links a { position: relative; padding: 0.3rem 0; transition: color 0.2s; }
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__links a::after {
  content: '';
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--grad-blue);
  transition: width 0.25s var(--ease);
}
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: var(--space-3); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.25s; }

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 99;
  padding: 6rem var(--space-4) var(--space-4);
  flex-direction: column;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.nav__mobile.open { display: flex; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta .btn { display: none; }
  .nav__toggle { display: flex; }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--r-pill);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--grad-blue);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(59, 130, 246, 0.45); }

.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--primary); }

.btn--dark {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.14);
}
.btn--dark:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }

/* ============================================
   HERO
   ============================================ */

.hero {
  padding-top: clamp(7rem, 14vw, 10rem);
  padding-bottom: calc(var(--space-6) + 60px);
  background: var(--grad-mesh);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(96,165,250,0.25) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-6);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}

@media (max-width: 980px) {
  .hero-left {
    align-items: center;
    text-align: center;
  }

  .hero-title {
    align-items: center;
    font-size: clamp(2rem, 5vw, 2.85rem);
  }

  .hero-subtitle {
    margin-inline: auto;
    text-align: center;
  }

  .hero-inline-form {
    margin-inline: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    text-align: center;
  }

  /* Hide code window on tablets and mobile */
  .hero-right {
    display: none !important;
  }
}

.hero-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-soft);
  box-shadow: var(--shadow-soft);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
}

.hero-line {
  display: block;
}

.hero-line.accent {
  color: var(--slate-soft);
  font-weight: 500;
  white-space: nowrap;
}

.felipa-text {
  font-family: 'Kaushan Script', cursive;
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
  font-weight: 400;
  position: relative;
  display: inline-block;
  min-width: 2px;
}

.felipa-text::before {
  content: '\200b';
}

.felipa-text::after {
  content: '|';
  position: absolute;
  right: -6px;
  -webkit-text-fill-color: var(--slate-soft);
  animation: blink 1s step-end infinite;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--slate-soft);
  font-weight: 400;
  max-width: 46ch;
  line-height: 1.6;
}

.hero-inline-form {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 440px;
  margin-top: var(--space-2);
  background: var(--white);
  padding: 0.4rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.hero-inline-form:focus-within {
  border-color: var(--primary-dim);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
}

.hero-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
}

.hero-input::placeholder {
  color: var(--mist);
}

.hero-submit {
  background: var(--grad-blue);
  color: var(--white);
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: var(--r-pill);
  transition: transform 0.25s, box-shadow 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  white-space: nowrap;
}

.hero-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.hero-visual {
  position: relative;
  width: 100%;
}

.code-window {
  background: #ffffff;
  border-radius: var(--r-md);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #24292e;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f6f8fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27c93f; }

.code-title {
  margin-left: auto;
  margin-right: auto;
  color: #586069;
  font-size: 0.75rem;
  font-weight: 500;
  transform: translateX(-24px); /* Center title offsetting the dots */
}

.code-body {
  padding: 20px;
  overflow-x: auto;
}

.code-line {
  display: flex;
  white-space: pre;
}

.code-line.indent {
  padding-left: 1.5rem;
}

.code-line.blank {
  height: 1.5em;
}

.code-comment { color: #6a737d; font-style: italic; }
.code-keyword { color: #d73a49; }
.code-var { color: #005cc5; }
.code-prop { color: #005cc5; }
.code-string { color: #032f62; }
.code-func { color: #6f42c1; }
.code-param { color: #d73a49; font-style: italic; }

.type-cursor::after {
  content: '|';
  color: #24292e;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ============================================
   PILL / BADGE / TAG
   ============================================ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-soft);
  box-shadow: var(--shadow-soft);
}

.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

/* ============================================
   LOGO CLOUD
   ============================================ */

.logocloud {
  overflow: hidden;
  position: relative;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.logocloud::before, .logocloud::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2;
}
.logocloud::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.logocloud::after { right: 0; background: linear-gradient(-90deg, var(--white), transparent); }

.logocloud__track {
  display: flex;
  gap: var(--space-6);
  width: max-content;
  animation: scroll-left 38s linear infinite;
}

.logocloud__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--slate-soft);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.25s;
}
.logocloud__item:hover { color: var(--primary); }
.logocloud__item svg { width: 22px; height: 22px; flex-shrink: 0; }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   CARDS — GLASSMORPHISM
   ============================================ */

.grid {
  display: grid;
  gap: var(--space-3);
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--r-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(59,130,246,0.35);
}

.card__icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--grad-blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease);
}
.card:hover .card__icon { transform: rotate(-6deg) scale(1.05); }
.card__icon svg { width: 26px; height: 26px; stroke: var(--white); }

.card h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.card p { color: var(--slate-soft); font-size: 0.94rem; margin-bottom: var(--space-2); }

.card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.card__link svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.card:hover .card__link svg { transform: translateX(3px); }

/* ============================================
   INTERACTIVE CARDS (IMAGE REVEAL)
   ============================================ */

.card--interactive {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: 0;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.05);
}

.card--interactive .card__bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}

.card--interactive .card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card--interactive .card__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 17, 32, 0.95) 0%, rgba(11, 17, 32, 0.4) 100%);
}

.card--interactive:hover .card__bg {
  opacity: 1;
  transform: scale(1);
}

.card--interactive .card__content {
  position: relative;
  z-index: 1;
  padding: var(--space-4);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease);
}

.card--interactive:hover .card__content {
  transform: translateY(-8px);
}

/* Transition text colors on hover */
.card--interactive h3, 
.card--interactive p, 
.card--interactive .card__link {
  transition: color 0.4s var(--ease);
}

.card--interactive:hover h3, 
.card--interactive:hover p, 
.card--interactive:hover .card__link {
  color: var(--white) !important;
}

.card--interactive:hover p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.card--interactive:hover .card__icon {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
  background: var(--white);
}

.card--interactive:hover .card__icon svg {
  stroke: var(--primary);
}

.card--interactive .card__icon {
  margin-top: auto;
  margin-bottom: var(--space-3);
}

/* ============================================
   SERVICES SECTION GRADIENT
   ============================================ */

.section--services-gradient {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f0f7ff 30%,
    #dbeafe 65%,
    #bfdbfe 100%
  );
  position: relative;
  overflow: hidden;
  padding-bottom: 2rem;
}

/* Subtle radial glow in the centre */
.section--services-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 70%, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================
   STICKY STACK SERVICES
   ============================================ */

.sticky-stack-container {
  position: relative;
  width: 100%;
  margin-top: var(--space-6);
}

.sticky-stack-layer {
  position: relative;
  min-height: 640px;
  contain: layout paint;
}

@media (max-width: 992px) {
  .sticky-stack-layer { min-height: 700px; }
}

.sticky-stack-sticky {
  position: sticky;
  top: 100px;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sticky-stack-card {
  transform-origin: center top;
  will-change: transform, opacity;
  border-radius: 20px;
  box-shadow: none;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.9);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 560px;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sticky-stack-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: none;
  transform: translateY(-4px);
}

@media (max-width: 992px) {
  .sticky-stack-card {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 600px;
  }
}

/* ---- Left Content ---- */
.sticky-stack-content {
  padding: 3.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 992px) {
  .sticky-stack-content { padding: 2rem; }
}

/* ---- Right Visual ---- */
.sticky-stack-visual {
  position: relative;
  overflow: hidden;
  background: #f8fafc;
  height: 100%;
}

/* Animated blue orbs in the background */
.sticky-stack-visual::before,
.sticky-stack-visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.sticky-stack-card:hover .sticky-stack-visual::before,
.sticky-stack-card:hover .sticky-stack-visual::after {
  opacity: 1;
}

.sticky-stack-visual::before {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation: orbFloat1 6s ease-in-out infinite;
}

.sticky-stack-visual::after {
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  bottom: 5%;
  left: 5%;
  animation: orbFloat2 8s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-20px, 15px) scale(1.08); }
  66% { transform: translate(10px, -10px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(15px, -20px) scale(1.1); }
  70% { transform: translate(-10px, 10px) scale(0.92); }
}

/* Always-on subtle animated orbs (lighter) */
.sticky-stack-visual .orb-primary {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  width: 300px; height: 300px;
  top: -5%; right: -8%;
  animation: orbFloat1 7s ease-in-out infinite;
  filter: blur(50px);
}

.sticky-stack-visual .orb-secondary {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  width: 240px; height: 240px;
  bottom: 0%; left: 0%;
  animation: orbFloat2 9s ease-in-out infinite;
  filter: blur(45px);
}

/* ---- Badge ---- */
.sticky-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 99px;
  padding: 6px 14px;
  margin-bottom: 1.8rem;
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink);
  letter-spacing: 0.01em;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.sticky-badge svg {
  width: 14px; height: 14px;
  stroke: var(--primary);
  flex-shrink: 0;
}

.sticky-stack-card:hover .sticky-badge {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.3);
}

/* ---- Typography ---- */
.sticky-stack-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.4vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  color: var(--ink);
}

.sticky-stack-card > .sticky-stack-content > p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate-soft);
  max-width: 38ch;
}

/* ---- Bullet List ---- */
.sticky-bullet-list {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sticky-bullet {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  transition: transform 0.25s ease;
}

.sticky-bullet:hover { transform: translateX(3px); }

.sticky-bullet-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.sticky-bullet:hover .sticky-bullet-icon {
  background: rgba(59, 130, 246, 0.22);
  transform: scale(1.1);
}

.sticky-bullet-icon svg {
  width: 11px; height: 11px;
  stroke: var(--primary);
  stroke-width: 3;
}

.sticky-bullet-text {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}

/* ---- Floating Visual Cards ---- */
.visual-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.06),
    0 20px 48px rgba(0,0,0,0.07);
  padding: 22px;
  position: absolute;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.sticky-stack-card:hover .visual-card {
  box-shadow:
    0 8px 24px rgba(59,130,246,0.1),
    0 30px 60px rgba(0,0,0,0.08);
}

.visual-card--primary {
  transform: rotate(-2.5deg);
}

.sticky-stack-card:hover .visual-card--primary {
  transform: rotate(-1.5deg) translateY(-6px);
}

.visual-card--secondary {
  transform: rotate(2deg);
  z-index: 3;
}

.sticky-stack-card:hover .visual-card--secondary {
  transform: rotate(1.2deg) translateY(-8px);
}

.glass-blob {
  position: absolute;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.6;
  pointer-events: none;
}

.flow-line {
  stroke: var(--line);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 6 6;
}

.flow-line--active {
  stroke: var(--primary);
  stroke-dasharray: 4 8;
  animation: flow-dash 1.6s linear infinite;
}

@keyframes flow-dash {
  to { stroke-dashoffset: -24; }
}

.flow-node {
  fill: var(--white);
  stroke: var(--line);
  stroke-width: 1.5;
}

.flow-node--primary {
  fill: var(--primary);
  stroke: var(--primary);
}

/* ============================================
   PROJECT CARDS
   ============================================ */

.project-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }

.project-card__media {
  aspect-ratio: 16/10;
  background: var(--grad-ink);
  position: relative;
  overflow: hidden;
}

.project-card__body { padding: var(--space-4); }

.project-card__tags { display: flex; gap: 0.4rem; margin-bottom: var(--space-2); flex-wrap: wrap; }

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--surface-alt);
  color: var(--primary-dim);
  font-weight: 600;
}

.section--dark .tag { background: rgba(255,255,255,0.08); color: var(--secondary); }

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.svg-draw-line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}
.reveal.in-view .svg-draw-line {
  animation: drawSvgLine 1.2s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes drawSvgLine {
  to {
    stroke-dashoffset: 0;
  }
}

.reveal--scale { transform: translateY(28px) scale(0.96); }
.reveal--scale.in-view { transform: translateY(0) scale(1); }

.stagger > * { transition-delay: calc(var(--i, 0) * 0.08s); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--scale { opacity: 1 !important; transform: none !important; transition: none !important; }
  .logocloud__track { animation: none; }
  .flow-line--active { animation: none; }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: #131D33; /* Matches bottom of --grad-ink from contact section */
  color: var(--mist);
  padding: 0 0 var(--space-3);
  position: relative;
  z-index: 2;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line-ink);
}

@media (max-width: 768px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-3); }
  .footer__top .footer__brand { grid-column: 1 / -1; }
}

.footer__brand .nav__logo { color: var(--white); }
.footer__brand p { margin-top: var(--space-2); max-width: 32ch; font-size: 0.9rem; }

.footer h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
  font-weight: 600;
}

.footer ul li { margin-bottom: 0.6rem; font-size: 0.9rem; }
.footer ul li a { transition: color 0.2s; }
.footer ul li a:hover { color: var(--secondary); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer__social { display: flex; gap: var(--space-2); }
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-ink);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, transform 0.25s;
}
.footer__social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer__social svg { width: 16px; height: 16px; stroke: var(--white); }

/* ============================================
   FORMS
   ============================================ */

.field { margin-bottom: var(--space-3); }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--ink);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
  outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }

/* ============================================
   UTILS
   ============================================ */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.text-center { text-align: center; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.w-full { width: 100%; }

.divider { height: 1px; background: var(--line); width: 100%; }
.section--dark .divider { background: var(--line-ink); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  z-index: 1000;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

/* ============================================
   FEATURED PROJECTS — PREMIUM DARK SECTION
   ============================================ */

.fp-section {
  padding: 0;
  background: linear-gradient(180deg, #bfdbfe 0%, #ffffff 100%);
}

.fp-wrapper {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  border-radius: 2.5rem;
  overflow: hidden;
  padding: 5rem 0 6rem;
  background: var(--grad-ink);
}

/* Ambient overlays */
.fp-ambient {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.4;
}

.fp-ray {
  position: absolute;
  top: -20%; left: -15%;
  width: 55%; height: 140%;
  background: linear-gradient(
    115deg,
    rgba(59,130,246,0) 0%,
    rgba(59,130,246,0.18) 45%,
    rgba(59,130,246,0.30) 50%,
    rgba(59,130,246,0.18) 55%,
    rgba(59,130,246,0) 100%
  );
  filter: blur(60px);
  animation: fpRay 14s ease-in-out infinite alternate;
}

.fp-blob--a {
  position: absolute;
  top: -10%; right: -8%;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,0.28) 0%, rgba(96,165,250,0) 65%);
  filter: blur(40px);
  animation: fpBlobA 18s ease-in-out infinite alternate;
}

.fp-blob--b {
  position: absolute;
  bottom: -15%; left: 10%;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.20) 0%, rgba(37,99,235,0) 70%);
  filter: blur(50px);
  animation: fpBlobB 22s ease-in-out infinite alternate;
}

.fp-grid-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0) 0px,
    rgba(255,255,255,0) 60px,
    rgba(59,130,246,0.025) 61px,
    rgba(59,130,246,0.025) 62px
  );
  mix-blend-mode: screen;
}

.fp-noise {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

@keyframes fpRay {
  0%   { transform: rotate(8deg) translate3d(-3%,-2%,0); opacity:0.8; }
  100% { transform: rotate(12deg) translate3d(5%,3%,0); opacity:1; }
}
@keyframes fpBlobA {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-6%,4%,0) scale(1.08); }
}
@keyframes fpBlobB {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(8%,-5%,0) scale(1.12); }
}

/* Section header */
.fp-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.fp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 38px;
  padding: 0.15rem 1rem 0.15rem 0.25rem;
  border-radius: 10px;
  background: rgba(8,14,28,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(59,130,246,0.5);
  margin-bottom: 1.5rem;
}
.fp-badge__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 0.5rem;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
}
.fp-badge__label {
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 500;
}

.fp-title { color: #fff; margin-bottom: 1rem; }

.fp-title__underline {
  position: relative;
  display: inline-block;
}

.fp-lede {
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.25rem;
}

.fp-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.fp-view-all:hover { color: #fff; border-color: #fff; }
.fp-view-all svg { transition: transform 0.3s var(--ease); }
.fp-view-all:hover svg { transform: translate(2px,-2px); }

/* Cards grid */
.fp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.fp-card--wide { grid-column: 1 / -1; }

.fp-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow:
    rgba(255,255,255,0.05) 0px 1px 0px inset,
    rgba(0,0,0,0.6) 0px 40px 90px -36px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  color: var(--slate);
  text-decoration: none;
}
.fp-card:hover {
  transform: translateY(-6px);
  box-shadow:
    rgba(255,255,255,0.08) 0px 1px 0px inset,
    rgba(0,0,0,0.7) 0px 50px 100px -40px,
    rgba(59,130,246,0.15) 0px 0px 40px 0px;
}

/* Image wrap — dark browser-chrome style */
.fp-card__image-wrap {
  position: relative;
  aspect-ratio: 21/9;
  overflow: hidden;
  background: radial-gradient(
    120% 90% at 50% 0%,
    rgba(10,20,50,0.15) 0%,
    #0d1a35 65%,
    #080e1c 100%
  );
  display: flex;
  flex-direction: column;
}

/* Browser bar */
.fp-card__browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}
.fp-dot { width: 8px; height: 8px; border-radius: 50%; }
.fp-dot--red    { background: #FF5F57; }
.fp-dot--yellow { background: #FEBC2E; }
.fp-dot--green  { background: #28C840; }

.fp-card__url-bar {
  margin: 0 auto;
  height: 14px;
  width: 45%;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.06);
}

/* Project screenshot */
.fp-card__image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transform: translateY(2%);
  transition: transform 1.2s var(--ease), scale 1.6s var(--ease);
}
.fp-card:hover .fp-card__image-wrap img { transform: translateY(0%) scale(1.02); }

/* Gradient overlay on hover */
.fp-card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.fp-card:hover .fp-card__image-overlay { opacity: 1; }

/* Arrow button */
.fp-card__arrow-btn {
  position: absolute;
  top: 3.1rem; right: 0.875rem;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  background: rgba(10,20,50,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.5s var(--ease);
  z-index: 4;
}
.fp-card:hover .fp-card__arrow-btn { transform: rotate(-45deg); }

/* Coming soon badge */
.fp-card__coming-soon {
  position: absolute;
  top: 3.1rem; left: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(11,17,32,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(59,130,246,0.4);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--secondary);
  text-transform: uppercase;
  z-index: 4;
}
.fp-card__coming-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--secondary);
}

/* Card body */
.fp-card__body {
  padding: 0.8rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.fp-card__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(30,41,59,0.45);
}
.fp-card__num { font-weight: 600; color: rgba(30,41,59,0.65); }
.fp-card__dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(30,41,59,0.25);
  flex-shrink: 0;
}

.fp-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}

.fp-card__desc {
  font-size: 0.72rem;
  color: rgba(30,41,59,0.55);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fp-card__footer {
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(30,41,59,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.fp-card__type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(59,130,246,0.07);
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(30,41,59,0.7);
}
.fp-card__type-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.fp-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  transition: gap 0.3s var(--ease);
}
.fp-card:hover .fp-card__cta { gap: 0.5rem; }

.fp-card__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  transition: background 0.25s;
}
.fp-card:hover .fp-card__cta-icon { background: var(--primary-dim); }

/* Bottom CTA */
.fp-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}
.fp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  height: 54px;
  padding: 0 1.625rem 0 0.375rem;
  border-radius: 999px;
  background: var(--primary);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 10px 24px -10px rgba(59,130,246,0.55);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background 0.25s, box-shadow 0.25s, transform 0.08s;
}
.fp-cta-btn:hover {
  background: var(--primary-dim);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 14px 30px -10px rgba(59,130,246,0.65);
  transform: translateY(-1px);
}
.fp-cta-btn:active { transform: scale(0.98); }

.fp-cta-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .fp-wrapper { border-radius: 1.5rem; padding: 3rem 0 4rem; }
  .fp-grid { grid-template-columns: 1fr; }
  .fp-card--wide { grid-column: 1; }
  .fp-header { margin-bottom: 2.5rem; }
}

/* ============================================
   SKILLS & TECHNOLOGIES SECTION
   ============================================ */
.skills-section {
  background: #bfdbfe;
  padding: 2rem 0 5rem 0;
  position: relative;
}
.skills-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.skills-header {
  text-align: center;
  margin-bottom: 4rem;
}
.skills-badge-wrap {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.skills-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 38px;
  padding: 0 1rem 0 0.25rem;
  border-radius: 10px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 130, 246, 0.5);
}
.skills-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--grad-blue);
}
.skills-badge-text {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}
.skills-title {
  color: #141414;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto;
  font-weight: 600;
}
.skills-desc {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #404040;
  max-width: 620px;
  margin: 1.25rem auto 0;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  border: 1px solid #e0e0e0;
  border-radius: 28px;
  background: #ffffff;
  overflow: hidden;
}
@media (min-width: 640px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
}
.skill-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
  background: #ffffff;
  border-right: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
  min-height: 340px;
}
@media (min-width: 640px) {
  .skill-card:nth-child(2n) { border-right: none; }
}
@media (min-width: 1024px) {
  .skill-card:nth-child(2n) { border-right: 1px solid #ebebeb; }
  .skill-card:nth-child(3n) { border-right: none; }
  .skill-card:nth-child(n+4) { border-bottom: none; }
}
.skill-icon-wrap {
  margin-bottom: 2rem;
}
.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--grad-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #ffffff;
}
.skill-card-title {
  color: #141414;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}
.skill-card-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #6b6b6b;
  margin: 0;
}
.skill-pills {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #2e2e2e;
  font-weight: 500;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
}
.skill-pill-dot {
  width: 6px;
  height: 6px;
  background: var(--grad-blue);
  border-radius: 50%;
  flex-shrink: 0;
}
.skills-cta-wrap {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}
.skills-cta-text {
  font-size: 0.95rem;
  color: #404040;
}
.skills-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem 0.5rem 0.5rem;
  border-radius: 9999px;
  background: var(--grad-blue);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
  transition: transform 0.3s ease;
}
.skills-cta-btn:hover {
  transform: translateY(-2px);
}
.skills-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
}


.skill-card {
  transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease, z-index 0s;
  z-index: 1;
}
.skill-card:hover {
  background: #ffffff;
  z-index: 2;
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
  border-radius: 28px;
  border: 1px solid rgba(59, 130, 246, 0.1) !important;
}
.skill-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-card:hover .skill-icon {
  transform: scale(1.1) rotate(2deg);
}

/* ============================================
   ROADMAP / PATH & CREDENTIALS
   ============================================ */
.roadmap-section {
  padding: var(--space-7) 0;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.roadmap-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-6);
}

.roadmap-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 20px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}

@media (min-width: 768px) {
  .roadmap-timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.roadmap-item {
  position: relative;
  padding: var(--space-4) 0;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .roadmap-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .roadmap-item:nth-child(even) {
    flex-direction: row-reverse;
  }
}

.roadmap-content {
  position: relative;
  margin-left: 60px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: var(--space-4);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  width: calc(100% - 60px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.roadmap-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

@media (min-width: 768px) {
  .roadmap-content {
    margin-left: 0;
    width: calc(50% - 40px);
  }
}

.roadmap-dot {
  position: absolute;
  left: 20px;
  top: 3rem;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--line);
  z-index: 10;
  transition: transform 0.3s, background 0.3s;
}

.roadmap-item:hover .roadmap-dot {
  background: var(--primary);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

@media (min-width: 768px) {
  .roadmap-dot {
    left: 50%;
    top: 50%;
  }
}

.roadmap-year {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
  background: var(--surface-alt);
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}

.roadmap-year .pulse {
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.roadmap-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.roadmap-desc {
  color: var(--slate-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}

@media (min-width: 640px) {
  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .credentials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cred-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.cred-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(59, 130, 246, 0.3);
}

.cred-icon {
  width: 40px; height: 40px;
  background: var(--surface-alt);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.cred-icon svg {
  width: 20px; height: 20px;
  stroke: var(--primary);
}

.cred-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

.cred-desc {
  font-size: 0.85rem;
  color: var(--slate-soft);
  line-height: 1.5;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
  background: var(--surface);
  padding-top: 2rem;
}

/* Tab buttons */
.faq-tab {
  position: relative;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--slate-soft);
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.faq-tab:hover {
  color: var(--ink);
}

.faq-tab--active {
  color: #fff !important;
  background: var(--ink);
  box-shadow: 0 2px 10px rgba(11, 17, 32, 0.25);
}

/* Panel visibility */
.faq-panel {
  animation: faqFadeIn 0.3s var(--ease);
}

.faq-panel--hidden {
  display: none;
}

@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* FAQ list spacing */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Individual item card */
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
}

.faq-item.faq-item--open {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.1);
}

/* Question button */
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.35rem 1.5rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: transparent;
}

/* Icon wrapper */
.faq-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--slate-soft);
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease;
}

.faq-item--open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Answer panel */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-answer p {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--slate-soft);
  padding-bottom: 1.35rem;
  margin: 0;
}

.faq-item--open .faq-answer {
  max-height: 300px;
  padding-top: 0;
}

/* ============================================
   CONTACT SECTION (NEW)
   ============================================ */

/* Two-column grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 1080px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Form card wrapper (glassmorphism) */
.contact-form-card {
  border-radius: 28px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

/* Contact info items */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
}

.contact-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.contact-info-item:hover .contact-info-icon {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
}

.contact-info-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.contact-info-value {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-top: 2px;
  transition: color 0.2s ease;
  font-weight: 500;
}

.contact-info-item:hover .contact-info-value {
  color: var(--secondary);
}

/* Form field label */
.contact-field-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Form field inputs — borderless underline style */
.contact-field-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  outline: none;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: #fff;
  transition: border-color 0.25s ease;
  display: block;
}

.contact-field-input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.contact-field-input:focus {
  border-bottom-color: var(--primary);
}

/* Submit button */
.contact-submit-btn {
  position: relative;
  width: 100%;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--grad-blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  padding: 0.95rem 1.25rem;
  border: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 10px 30px -10px rgba(59, 130, 246, 0.55);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.2s;
  margin-top: 0.25rem;
}

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 16px 36px -10px rgba(59, 130, 246, 0.7);
}

.contact-submit-btn:active {
  transform: translateY(0);
}

.contact-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ============================================
   BUILDER ACTIONS & CONTACT FORM ROW
   ============================================ */

.builder-actions {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  align-items: center;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ============================================
   MOBILE RESPONSIVE — GLOBAL
   ============================================ */

@media (max-width: 768px) {
  :root {
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 4rem;
  }

  .h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .h3 { font-size: clamp(1.15rem, 4vw, 1.5rem); }
  .lede { font-size: 0.9rem; line-height: 1.55; }

  .nav { padding: 0.75rem 0.75rem; }
  .nav__inner { padding: 0.65rem 1.25rem !important; }
  .nav__logo .logo-first { font-size: 1.05rem; }
  .nav__logo .logo-last { font-size: 0.62rem; }
  .nav__toggle { padding: 0.5rem; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .nav__mobile { font-size: 1.35rem; gap: var(--space-2); }
  .nav__mobile .btn { font-size: 0.9rem; width: 100%; justify-content: center; }

  .btn { font-size: 0.85rem; padding: 0.75rem 1.25rem; min-height: 44px; }
  .btn--sm { font-size: 0.8rem; padding: 0.55rem 1rem; }

  /* ---- HERO ---- */
  .hero {
    padding-top: clamp(5.5rem, 18vw, 7rem);
    padding-bottom: var(--space-5);
  }

  .hero-content {
    gap: var(--space-4);
    text-align: center;
  }

  .hero-left {
    align-items: center;
    gap: var(--space-3);
    width: 100%;
  }

  .hero-top-badge {
    font-size: 0.72rem;
    padding: 0.4rem 0.85rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 8vw, 2.75rem);
    line-height: 1.12;
    align-items: center;
    text-align: center;
  }

  .hero-line {
    text-align: center;
  }

  .hero-line.accent {
    white-space: normal;
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
  }

  .felipa-text::after { right: -4px; }

  .hero-subtitle {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    line-height: 1.6;
    max-width: 36ch;
    margin-inline: auto;
    text-align: center;
  }

  .hero-inline-form {
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
    padding: 0.35rem 0.35rem 0.35rem 0.5rem;
    border-radius: var(--r-pill);
    gap: 0.35rem;
  }

  .hero-input {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    padding: 0.7rem 0.75rem;
    width: auto;
    text-align: left;
  }

  .hero-submit {
    flex-shrink: 0;
    width: auto;
    padding: 0.7rem 1.15rem;
    font-size: 0.85rem;
    min-height: 44px;
    white-space: nowrap;
  }

  .hero-submit:active {
    transform: scale(0.98);
  }

  /* ---- LOGO CLOUD ---- */
  .logocloud { padding: var(--space-3) 0; }
  .logocloud::before, .logocloud::after { width: 60px; }
  .logocloud__track { gap: var(--space-4); }
  .logocloud__item { font-size: 0.78rem; gap: 0.45rem; }
  .logocloud__item svg { width: 18px; height: 18px; }

  /* ---- SERVICES ---- */
  .section--services-gradient { padding-bottom: 1rem; }

  #services-preview .section-head h2[style] {
    font-size: clamp(1.4rem, 5.5vw, 1.85rem) !important;
  }

  #services-preview .section-head p[style] {
    font-size: 0.85rem !important;
  }

  .sticky-stack-container { margin-top: var(--space-4); }

  .sticky-stack-layer {
    min-height: auto;
    margin-bottom: var(--space-3);
  }

  .sticky-stack-sticky {
    position: relative;
    top: auto;
  }

  .sticky-stack-card {
    min-height: auto;
    height: auto;
    border-radius: 16px;
  }

  .sticky-stack-card:hover {
    transform: none;
  }

  .sticky-stack-content {
    padding: 1.5rem 1.25rem;
  }

  .sticky-badge {
    font-size: 0.72rem;
    padding: 5px 12px;
    margin-bottom: 1rem;
  }

  .sticky-stack-card h3 {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    margin-bottom: 0.65rem;
  }

  .sticky-stack-card > .sticky-stack-content > p {
    font-size: 0.85rem;
    line-height: 1.55;
    max-width: 100%;
  }

  .sticky-bullet-list { margin-top: 1.25rem; gap: 8px; }
  .sticky-bullet-text { font-size: 0.82rem; }

  /* Hide complex visuals on mobile — content only */
  .sticky-stack-visual {
    display: none;
  }

  /* ---- SKILLS ---- */
  .skills-section { padding: 1.5rem 0 3rem; }
  .skills-container { padding: 0 var(--space-3); }
  .skills-header { margin-bottom: 2rem; }
  .skills-title { font-size: clamp(1.45rem, 5.5vw, 2rem); }
  .skills-desc { font-size: 0.88rem; margin-top: 0.85rem; }
  .skills-badge-text { font-size: 0.75rem; }
  .skill-card {
    padding: 1.5rem;
    min-height: auto;
  }
  .skill-card-title { font-size: 1.15rem; }
  .skill-card-desc { font-size: 0.82rem; }
  .skill-pill { font-size: 0.72rem; padding: 0.3rem 0.6rem; }
  .skill-icon { width: 44px; height: 44px; }
  .skill-icon-wrap { margin-bottom: 1.25rem; }
  .skill-pills { padding-top: 1.25rem; }
  .skills-cta-text { font-size: 0.85rem; }
  .skills-cta-btn { font-size: 0.85rem; }

  .skill-card:active {
    transform: scale(0.98);
    box-shadow: 0 8px 20px -8px rgba(0,0,0,0.1);
  }

  /* ---- FEATURED PROJECTS ---- */
  .fp-wrapper { border-radius: 1.25rem; padding: 2.5rem 0 3rem; margin: 0 var(--space-3); }
  .fp-header { margin-bottom: 2rem; padding: 0 var(--space-3); }
  .fp-badge { height: 34px; margin-bottom: 1rem; }
  .fp-badge__pill { font-size: 0.65rem; height: 22px; }
  .fp-badge__label { font-size: 0.72rem; }
  .fp-title { font-size: clamp(1.45rem, 5.5vw, 2rem) !important; margin-bottom: 0.75rem; }
  .fp-lede { font-size: 0.85rem; }
  .fp-grid { gap: 1rem; padding: 0 var(--space-3); }
  .fp-card { border-radius: 1.25rem; }
  .fp-card:active { transform: scale(0.98); }
  .fp-card__body { padding: 0.9rem 1rem 1rem; }
  .fp-card__title { font-size: 0.95rem; }
  .fp-card__desc { font-size: 0.72rem; }
  .fp-card__meta { font-size: 0.58rem; }
  .fp-card__type-badge { font-size: 0.65rem; }
  .fp-card__cta { font-size: 0.72rem; }

  /* ---- ROADMAP / PATH ---- */
  .roadmap-section { padding: var(--space-6) 0; }
  .roadmap-header { margin-bottom: var(--space-4); }
  .roadmap-content { padding: var(--space-3); margin-left: 52px; width: calc(100% - 52px); }
  .roadmap-dot { width: 36px; height: 36px; font-size: 0.72rem; left: 18px; }
  .roadmap-title { font-size: 1.05rem; }
  .roadmap-desc { font-size: 0.82rem; }
  .roadmap-year { font-size: 0.68rem; }

  #meet-builder {
    padding: var(--space-3) !important;
    margin-bottom: var(--space-5) !important;
  }

  #meet-builder .h2 { font-size: clamp(1.35rem, 5vw, 1.75rem); }
  #meet-builder .lede { font-size: 0.88rem; }

  .builder-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .builder-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* ---- FAQ ---- */
  .faq-section { padding-top: 1.5rem; }
  .faq-tab {
    font-size: 0.75rem;
    padding: 0.45rem 0.85rem;
    min-height: 40px;
  }
  .faq-question {
    font-size: 0.9rem;
    padding: 1rem 1.1rem;
    gap: 0.75rem;
  }
  .faq-icon { width: 30px; height: 30px; }
  .faq-answer p { font-size: 0.85rem; padding-bottom: 1rem; }
  .faq-answer { padding: 0 1.1rem; }

  /* ---- CONTACT ---- */
  .contact-section { padding: var(--space-6) 0 !important; }
  .contact-grid { gap: 2rem; }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form-card h3 { font-size: 1.15rem !important; }
  .contact-field-input { font-size: 0.85rem; }
  .contact-field-label { font-size: 0.62rem; }
  .contact-submit-btn { font-size: 0.88rem; min-height: 48px; }
  .contact-submit-btn:active { transform: scale(0.98); }

  .contact-section [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .contact-section h2[style] {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    margin-top: 1.25rem !important;
  }

  .contact-section p[style*="max-width:480px"] {
    font-size: 0.88rem !important;
    margin-top: 1rem !important;
  }

  .contact-info-value { font-size: 0.82rem; word-break: break-word; }

  /* ---- FOOTER ---- */
  .footer__top { grid-template-columns: 1fr; }
  .footer__brand p { font-size: 0.82rem; }
  .footer ul li { font-size: 0.82rem; }
  .footer__bottom { flex-direction: column; text-align: center; font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  .hero-title { font-size: clamp(1.75rem, 9vw, 2.25rem); }
  .hero-line.accent { font-size: clamp(1.2rem, 6vw, 1.55rem); }

  .hero-inline-form {
    max-width: 100%;
    padding: 0.3rem 0.3rem 0.3rem 0.45rem;
  }

  .hero-input {
    font-size: 0.85rem;
    padding: 0.65rem 0.5rem;
  }

  .hero-submit {
    padding: 0.65rem 0.9rem;
    font-size: 0.8rem;
  }

  .section-head[style] h2,
  .skills-title,
  .roadmap-header .h2 {
    font-size: 1.35rem !important;
  }

  .faq-tabs {
    border-radius: 14px !important;
    padding: 4px !important;
    gap: 4px !important;
    width: 100%;
    justify-content: stretch !important;
  }

  .faq-tab {
    flex: 1 1 calc(50% - 4px);
    text-align: center;
    font-size: 0.7rem;
    padding: 0.4rem 0.5rem;
  }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
  .fp-card:hover { transform: none; }
  .skill-card:hover { transform: none; box-shadow: none; border-radius: 0; }
  .sticky-stack-card:hover { transform: none; }
  .sticky-bullet:hover { transform: none; }

  .fp-card:active,
  .skill-card:active,
  .faq-item:active,
  .roadmap-content:active {
    opacity: 0.92;
  }

  .btn:active,
  .hero-submit:active,
  .skills-cta-btn:active {
    transform: scale(0.97);
  }
}

/* ============================================
   PROJECT MODAL — REDESIGN
   ============================================ */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.project-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 20, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: var(--surface);
  border-radius: 1.75rem;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-modal[aria-hidden="false"] .modal-content {
  transform: translateY(0) scale(1);
}

/* Scrollbar */
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }

/* Close Button */
.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 20;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-close:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

/* === VIDEO SECTION === */
.modal-video-wrap {
  width: 100%;
  background: var(--surface);
  border-radius: 1.75rem 1.75rem 0 0;
  padding: 0.85rem 0.85rem 0;
  box-sizing: border-box;
}
.modal-video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
}

/* === INFO SECTION (2 columns) === */
.modal-info {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  background: var(--surface);
  border-radius: 0 0 1.75rem 1.75rem;
}

.modal-info__left {
  padding: 1.4rem 1.25rem 1.5rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.modal-info__right {
  padding: 1.4rem 1.5rem 1.5rem 1.25rem;
}

/* Label above heading */
.modal-info__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Project Title */
.modal-info__title {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

/* Description text */
.modal-info__desc {
  font-size: 0.8rem;
  color: var(--slate-soft);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* CTA Button */
.modal-info__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.modal-info__btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Tech Stack Pills — use site's skill-pill style */
.modal-info__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* Small see-website link button */
.modal-see-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.75rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255,255,255,0.05);
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: 0.02em;
}
.modal-see-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

@media (max-width: 700px) {
  .project-modal { padding: 1rem; }
  .modal-info { grid-template-columns: 1fr; }
  .modal-video-wrap { padding: 1rem 1rem 0; border-radius: 1.25rem 1.25rem 0 0; }
  .modal-info__left {
    padding: 1.5rem 1.25rem 1.25rem;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .modal-info__right { padding: 1.25rem; }
  .modal-video-wrap video { max-height: 40vh; border-radius: 0.85rem; }
  .modal-close { top: 0.75rem; right: 0.75rem; width: 36px; height: 36px; }
}


/* PC Scaling Fix: Native Browser Zoom to perfectly match 1920x1200 on all smaller PCs */
@media (max-width: 1700px) and (min-width: 1500px) { /* Covers 1680x1050 */
  body { zoom: 0.875; }
}

@media (max-width: 1499px) and (min-width: 1400px) { /* Covers 1440x900 */
  body { zoom: 0.75; }
}

@media (max-width: 1399px) and (min-width: 1200px) { /* Covers 1366x768 */
  body { zoom: 0.71; }
}

@media (max-width: 1199px) and (min-width: 769px) { /* Covers 1024x768 and 1024x600 */
  body { zoom: 0.6; }
}








