:root {
  --bg-1: #eceae6;
  --bg-2: #dfdcd6;
  --platform-1: #ffffff;
  --platform-2: #c8c5bd;
  --tile: #0b0b0d;
  --tile-2: #16161a;
  --ink: #0a0a0c;
  --ink-soft: #2a2a2d;
  --mute: #8a8780;
  --hairline: rgba(20, 20, 22, 0.5);
  --accent: #e8462c;
}

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

html,
body {
  background: var(--bg-1);
  color: var(--ink);
  font-family: "Vazirmatn", "Geist", system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body {
  background: radial-gradient(
    120% 70% at 50% 0%,
    #f2f0ec 0%,
    #e8e5df 60%,
    #ddd9d0 100%
  );
  min-height: 100vh;
}

/* ============ NAVBAR ============ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px 40px;
  transition: background 0.4s ease, backdrop-filter 0.4s ease,
    box-shadow 0.4s ease, padding 0.4s ease;
}
.site-nav.scrolled {
  background: rgba(236, 234, 230, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 1px 0 var(--hairline), 0 10px 30px -20px rgba(40, 30, 10, 0.25);
  padding: 12px 40px;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  font-family: "Vazirmatn", "Geist", sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-brand::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 70, 44, 0.18);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.6, 0, 0.2, 1);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav-cta {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fafaf7;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.6, 0, 0.2, 1);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.4);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -8px rgba(0, 0, 0, 0.5);
  background: var(--accent);
}

/* Grain */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============ POSTER (HERO) ============ */
.poster {
  min-height: 100vh;
  padding: 100px 48px 80px;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* Top divider */
.top-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 80px;
  width: 100%;
  max-width: 420px;
}
.top-divider .line {
  height: 1px;
  background: var(--hairline);
  flex: 1;
  transform-origin: center;
}
.top-divider .dot {
  width: 28px;
  height: 5px;
  background: var(--ink);
  border-radius: 2px;
}

/* Left arcs */
.arcs {
  position: absolute;
  left: -800px;
  top: 50%;
  transform: translateY(-50%);
  width: 1600px;
  height: 1600px;
  pointer-events: none;
  z-index: 1;
}
.arc {
  fill: none;
  stroke: var(--hairline);
  stroke-width: 0.6;
  opacity: 0.7;
}

/* ----- The three pill platforms ----- */
.pills {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 4;
  position: relative;
}

.pill {
  background: linear-gradient(180deg, #fefcf9 0%, #f0ece2 50%, #d4cfc1 100%);
  border-radius: 56px;
  padding: 20px;
  display: flex;
  gap: 20px;
  box-shadow: 0 30px 60px -24px rgba(40, 30, 10, 0.28),
    0 14px 28px -12px rgba(40, 30, 10, 0.16),
    0 6px 14px -4px rgba(40, 30, 10, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 1),
    inset 0 -3px 6px rgba(60, 50, 30, 0.18),
    inset 1px 0 0 rgba(255, 255, 255, 0.9),
    inset -1px 0 0 rgba(120, 110, 90, 0.2);
  position: relative;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s;
  will-change: transform;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.pill:hover {
  box-shadow: 0 44px 80px -28px rgba(40, 30, 10, 0.38),
    0 22px 40px -14px rgba(40, 30, 10, 0.22),
    0 10px 20px -5px rgba(40, 30, 10, 0.14),
    inset 0 2px 0 rgba(255, 255, 255, 1),
    inset 0 -3px 6px rgba(60, 50, 30, 0.18),
    inset 1px 0 0 rgba(255, 255, 255, 0.9),
    inset -1px 0 0 rgba(120, 110, 90, 0.2);
}
.pill-num {
  position: absolute;
  top: 28px;
  right: 32px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--mute);
  font-weight: 500;
  z-index: 3;
  text-transform: uppercase;
}
.pill-num::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--mute);
  vertical-align: middle;
  margin-right: 8px;
  opacity: 0.6;
}

/* Inner dark tiles */
.dark-tile {
  background: linear-gradient(180deg, #16161a 0%, #0b0b0d 100%);
  color: #fafaf7;
  border-radius: 44px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.65),
    inset 0 -2px 4px rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(255, 255, 255, 0.4);
}
.dark-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 30%,
    transparent 70%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
  border-radius: inherit;
}

.pill-media {
  flex: 0 0 38%;
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  padding: 0;
}
.placeholder-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.pill-media:hover .placeholder-svg {
  transform: scale(1.06);
}
.pill-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 28px 30px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    transparent 100%
  );
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pill-category {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pill-category::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--accent);
  opacity: 0.8;
}
.pill-title {
  font-family: "Vazirmatn", "Geist", sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 46px);
  letter-spacing: -0.025em;
  line-height: 1;
  color: #fafaf7;
}

.tools-tile {
  flex: 1;
  padding: 40px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: 48px;
  row-gap: 16px;
  align-content: center;
}
.tools-tile .t {
  font-family: "Geist Mono", monospace;
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 19px);
  letter-spacing: 0.05em;
  color: #fafaf7;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s, transform 0.4s cubic-bezier(0.6, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.tools-tile .t::before {
  content: "";
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.6, 0, 0.2, 1);
}
.tools-tile .t:hover {
  color: #ffc9ba;
  transform: translateX(6px);
}
.tools-tile .t:hover::before {
  width: 14px;
}

/* Reinvent footer */
.reinvent {
  margin-top: auto;
  padding-top: 90px;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--mute);
  text-transform: uppercase;
  font-weight: 400;
  text-align: center;
}
.reinvent .gap {
  display: inline-block;
  width: 22px;
}

/* ============ NEW HERO CONTENT ============ */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  z-index: 4;
  position: relative;
  max-width: 800px;
  margin: auto 0;
}
.hero-title {
  font-family: "Vazirmatn", "Geist", sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.hero-title em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}
.hero-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.btn-primary, .btn-secondary {
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.6, 0, 0.2, 1);
  font-weight: 500;
}
.btn-primary {
  background: var(--ink);
  color: #fafaf7;
  box-shadow: 0 10px 20px -5px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -5px rgba(0,0,0,0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn-secondary:hover {
  background: rgba(20,20,22,0.05);
  transform: translateY(-2px);
}

/* ============ SECTION 2: FEATURED TOOLS ============ */
.featured {
  padding: 140px 40px 80px;
  position: relative;
  z-index: 5;
}
.featured-head {
  max-width: 1280px;
  margin: 0 auto 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 70, 44, 0.18);
}
.featured-head h2 {
  font-family: "Vazirmatn", "Geist", sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 680px;
  color: var(--ink);
}
.featured-head h2 em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}
.featured-head p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 320px;
}

.featured-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.f-card {
  background: linear-gradient(180deg, #fcfaf7 0%, #ece8de 100%);
  border-radius: 28px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 22px 40px -16px rgba(40, 30, 10, 0.22),
    0 8px 16px -4px rgba(40, 30, 10, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -3px 6px rgba(60, 50, 30, 0.1);
  transition: transform 0.5s cubic-bezier(0.6, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.f-card:hover {
  transform: translateY(-8px);
}

.f-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.f-mini {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(180deg, #16161a, #0b0b0d);
  color: #fafaf7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Geist Mono", monospace;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 10px 18px -6px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -2px 4px rgba(0, 0, 0, 0.4);
}
.f-tag {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  padding: 5px 11px;
  background: rgba(40, 30, 10, 0.06);
  border-radius: 999px;
}
.f-card h3 {
  font-family: "Vazirmatn", "Geist", sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.f-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1;
}
.f-card .url {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mute);
  border-top: 1px solid rgba(20, 20, 22, 0.1);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.f-card .url svg {
  transition: transform 0.4s cubic-bezier(0.6, 0, 0.2, 1);
}
.f-card:hover .url svg {
  transform: translate(3px, -3px);
}

/* ============ SECTION 3: REINVENT CTA ============ */
.cta-section {
  padding: 60px 40px 140px;
  position: relative;
  z-index: 5;
}
.cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  background: linear-gradient(180deg, #16161a 0%, #0b0b0d 100%);
  border-radius: 36px;
  padding: 100px 60px;
  color: #f4edde;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(20, 8, 0, 0.5),
    0 16px 32px -12px rgba(20, 8, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -3px 8px rgba(0, 0, 0, 0.6);
}
.cta-inner::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 70, 44, 0.28), transparent 65%);
  top: -200px;
  left: -100px;
  filter: blur(40px);
}
.cta-inner::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 200, 130, 0.18),
    transparent 65%
  );
  bottom: -180px;
  right: -80px;
  filter: blur(30px);
}
.cta-tag {
  display: inline-block;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.36em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.cta-inner h2 {
  font-family: "Vazirmatn", "Geist", sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 6.4vw, 100px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}
.cta-inner h2 em {
  font-style: normal;
  font-weight: 600;
  background: linear-gradient(135deg, #ff8f7a, #ffc9a6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 700px;
  margin: 50px auto 0;
  position: relative;
  z-index: 1;
}
.cta-stat .num {
  font-family: "Vazirmatn", "Geist", sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ffc9a6;
}
.cta-stat .num small {
  font-size: 0.45em;
  color: var(--mute);
  font-weight: 500;
}
.cta-stat .lbl {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 10px;
}

/* ============ LENIS SMOOTH SCROLL ============ */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* GPU hints for animated layers */
.pill,
.f-card,
.cta-inner,
.hero-content,
#arcs,
.grain {
  will-change: transform, opacity;
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.lenis,
  html.lenis body {
    scroll-behavior: auto !important;
  }
  .pill,
  .f-card,
  .cta-inner,
  .hero-content,
  #arcs {
    transform: none !important;
    opacity: 1 !important;
  }
  .grain {
    display: none;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .site-nav {
    padding: 14px 20px;
  }
  .site-nav.scrolled {
    padding: 10px 20px;
  }
  .nav-links {
    gap: 20px;
  }
  .poster {
    padding: 90px 20px 60px;
  }
  .page-hero {
    padding: 100px 20px 40px;
    min-height: 60vh;
  }
  .showcases {
    padding: 20px 20px 60px;
    gap: 50px;
  }
  .project-showcase,
  .project-showcase.reverse {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .project-showcase.reverse .showcase-media,
  .project-showcase.reverse .showcase-content {
    order: initial;
  }
  .showcase-media {
    border-radius: 28px;
  }
  .showcase-tools {
    grid-template-columns: 1fr 1fr !important;
    padding: 22px 24px !important;
  }
  .pill {
    border-radius: 36px;
    padding: 12px;
    gap: 12px;
  }
  .dark-tile {
    border-radius: 28px;
  }
  .pill-media {
    flex: 0 0 34%;
  }
  .pill-overlay {
    padding: 20px 22px;
  }
  .tools-tile {
    padding: 22px 24px;
    column-gap: 20px;
    row-gap: 10px;
  }
  .pill-num {
    top: 18px;
    right: 20px;
    font-size: 10px;
  }
  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-info {
    padding: 60px 20px 80px;
  }
  .cta-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
  .nav-cta {
    font-size: 11px;
    padding: 10px 18px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  .page-hero {
    padding: 90px 16px 30px;
    min-height: auto;
  }
  .filter-bar {
    gap: 8px;
    margin-top: 30px;
  }
  .filter-btn {
    font-size: 10px;
    padding: 8px 14px;
  }
  .showcases {
    padding: 10px 16px 40px;
    gap: 40px;
  }
  .project-meta-grid {
    gap: 12px 20px;
  }
  .meta-value {
    font-size: 13px;
  }
  .showcase-tools {
    grid-template-columns: 1fr !important;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
  }
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-info {
    padding: 40px 16px 60px;
  }
  .contact-card {
    min-height: 0;
    padding: 22px;
  }
  .contact-value {
    font-size: 15px;
  }
  .tools-tile .t {
    font-size: 12px;
  }
  .pill-title {
    font-size: 22px;
  }
  .pill-category {
    font-size: 10px;
  }
  .pill-media {
    flex: 0 0 38%;
  }
  .cta-section {
    padding: 20px 16px 60px;
  }
  .cta-inner {
    padding: 60px 24px;
    border-radius: 26px;
  }
  .featured {
    padding: 60px 16px 40px;
  }
  .site-footer {
    padding: 40px 20px 30px;
  }
  .footer-nav {
    gap: 14px;
  }
  .footer-nav a {
    font-size: 11px;
  }
}

/* ============ CTA PARAGRAPH ============ */
.cta-inner > p {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ============ PAGE HERO (Subpages) ============ */
.page-hero {
  min-height: 70vh;
  padding: 120px 48px 60px;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.page-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  z-index: 4;
  position: relative;
  max-width: 820px;
  margin: auto 0;
}
.page-hero-title {
  font-family: "Vazirmatn", "Geist", sans-serif;
  font-weight: 700;
  font-size: clamp(42px, 7vw, 100px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.page-hero-title em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}
.page-hero-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 600px;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 50px;
  z-index: 4;
  position: relative;
}
.filter-btn {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.6, 0, 0.2, 1);
  font-weight: 500;
}
.filter-btn:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
  transform: translateY(-2px);
}
.filter-btn.active {
  background: var(--ink);
  color: #fafaf7;
  border-color: var(--ink);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.4);
}

/* ============ PROJECT SHOWCASES ============ */
.showcases {
  padding: 40px 40px 100px;
  position: relative;
  z-index: 5;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.project-showcase {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
  opacity: 0;
  transform: translateY(60px);
}
.project-showcase.reverse {
  grid-template-columns: 1fr 1.1fr;
}
.project-showcase.reverse .showcase-media {
  order: 2;
}
.project-showcase.reverse .showcase-content {
  order: 1;
}
.showcase-media {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  border-radius: 36px;
}
.showcase-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(11, 11, 13, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.showcase-year {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}
.showcase-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.showcase-num {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--mute);
  font-weight: 500;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.showcase-num::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}
.showcase-title {
  font-family: "Vazirmatn", "Geist", sans-serif;
  font-weight: 700;
  font-size: clamp(42px, 5vw, 72px);
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}
.showcase-subtitle {
  font-family: "Vazirmatn", "Geist", sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.showcase-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 540px;
}
.showcase-tools {
  margin-top: 10px;
  padding: 26px 32px !important;
  border-radius: 24px !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  grid-auto-flow: row !important;
  column-gap: 24px !important;
  row-gap: 12px !important;
}
.showcase-tools .t {
  font-size: 12px !important;
}

/* Project meta grid */
.project-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin: 6px 0;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.meta-label {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.meta-value {
  font-family: "Vazirmatn", "Geist", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Active nav link */
.nav-links a.active {
  color: var(--ink);
}
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Visually hidden (accessibility) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Filter hidden state */
.project-showcase.is-hidden,
.f-card.is-hidden {
  display: none !important;
}

/* ============ CONTACT INFO SECTION ============ */
.contact-info {
  padding: 80px 40px 140px;
  position: relative;
  z-index: 5;
}
.contact-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.contact-card {
  background: linear-gradient(180deg, #fcfaf7 0%, #ece8de 100%);
  border-radius: 28px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 22px 40px -16px rgba(40, 30, 10, 0.22),
    0 8px 16px -4px rgba(40, 30, 10, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -3px 6px rgba(60, 50, 30, 0.1);
  transition: transform 0.5s cubic-bezier(0.6, 0, 0.2, 1),
    box-shadow 0.5s cubic-bezier(0.6, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 60px -20px rgba(40, 30, 10, 0.32),
    0 14px 24px -6px rgba(40, 30, 10, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -3px 6px rgba(60, 50, 30, 0.1);
}
.contact-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.contact-card h3 {
  font-family: "Vazirmatn", "Geist", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.contact-value {
  font-family: "Geist Mono", monospace;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s, transform 0.4s cubic-bezier(0.6, 0, 0.2, 1);
  margin-top: auto;
  display: inline-block;
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}
.contact-value.address {
  font-family: "Vazirmatn", "Geist", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
  border-bottom: none;
}
a.contact-value:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  transform: translateX(-4px);
}
.contact-hint {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  padding-top: 10px;
  border-top: 1px solid rgba(20, 20, 22, 0.1);
}

/* ============ FOOTER ============ */
.site-footer {
  padding: 70px 40px 40px;
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, transparent 0%, rgba(20, 20, 22, 0.04) 100%);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-brand strong {
  font-family: "Vazirmatn", "Geist", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-nav a {
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}
.footer-nav a:hover {
  color: var(--accent);
}
.footer-legal {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mute);
  text-transform: uppercase;
}

/* ============ FOOTER SOCIAL ICONS ============ */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, #16161a 0%, #0b0b0d 100%);
  color: #fafaf7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.6, 0, 0.2, 1),
    background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4);
}
.footer-social a:hover {
  background: var(--accent);
  color: #fafaf7;
  transform: translateY(-3px);
  box-shadow: 0 14px 24px -8px rgba(232, 70, 44, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25);
}
.footer-social a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.footer-social svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ============ LENIS SMOOTH SCROLL ============ */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .grain { display: none; }
}

/* ============ LENIS SMOOTH SCROLL ============ */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .grain { display: none; }
}
