/* ===== SCROLL VELOCITY IMAGES ===== */
.scroll-velocity-section {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem 0;
  margin-top: 3rem;
}

.scroll-velocity-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.scroll-velocity-row {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  width: max-content;
}

.scroll-velocity-row--forward {
  animation: scrollForward 30s linear infinite;
  animation-play-state: running;
}

.scroll-velocity-row--reverse {
  animation: scrollReverse 30s linear infinite;
  animation-play-state: running;
}

.scroll-velocity-row.paused {
  animation-play-state: paused;
}

.scroll-velocity-row.scroll-down-forward {
  animation: scrollFastForward 10s linear infinite;
}

.scroll-velocity-row.scroll-down-reverse {
  animation: scrollFastReverse 10s linear infinite;
}

.scroll-velocity-row.scroll-up-forward {
  animation: scrollFastReverse 10s linear infinite;
}

.scroll-velocity-row.scroll-up-reverse {
  animation: scrollFastForward 10s linear infinite;
}

.scroll-velocity-image {
  width: 414px;
  height: 276px;
  margin: 0 0.25rem;
  border-radius: var(--r-lg);
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scroll-velocity-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(255, 77, 26, 0.2);
}

.scroll-velocity-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.scroll-velocity-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: var(--r-lg);
}

.scroll-velocity-link:hover .scroll-velocity-overlay {
  opacity: 1;
}

.scroll-velocity-fade-left,
.scroll-velocity-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 25%;
  pointer-events: none;
  z-index: 10;
}

.scroll-velocity-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.scroll-velocity-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

@keyframes scrollForward {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollReverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes scrollFastForward {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollFastReverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Google Fonts loaded via <link> in HTML — removed render-blocking @import */

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== CUSTOM PROPERTIES ===== */
:root {
  /* Backgrounds */
  --bg:       #000000;
  --bg-2:     #000000;
  --bg-3:     #111111;
  --bg-card:  #000000;

  /* Borders */
  --border:   #333333;
  --border-2: #444444;

  /* Flame accent */
  --flame:    #FF4D1A;
  --flame-2:  #FF7A3D;
  --amber:    #FFB340;
  --glitter:  url("https://assets.codepen.io/13471/silver-glitter-background.png");

  /* Text */
  --text:     #FFFFFF;
  --text-2:   #CCCCCC;
  --text-3:   #999999;

  /* Typography */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing scale */
  --s1:  0.25rem;
  --s2:  0.5rem;
  --s3:  0.75rem;
  --s4:  1rem;
  --s5:  1.25rem;
  --s6:  1.5rem;
  --s8:  2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --s20: 5rem;
  --s24: 6rem;
  --s32: 8rem;

  /* Border radius */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   32px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   450ms cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Container */
  --max-w: 1280px;
  --pad:   clamp(1.25rem, 5vw, 3rem);
}

/* ===== BASE ===== */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.display-1 { font-size: clamp(3rem, 8vw, 7rem); }
.display-2 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
.display-3 { font-size: clamp(1.75rem, 3vw, 3rem); }

.text-gradient {
  background: linear-gradient(135deg, var(--flame) 0%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ===== SECTION ===== */
.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section--sm { padding: clamp(3rem, 6vw, 5rem) 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: var(--s6);
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--flame);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: var(--s6);
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 0.875rem 1.75rem;
  border-radius: var(--r-full);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
  transition: var(--t-slow);
  white-space: nowrap;
}

.btn--primary {
  background: var(--flame);
  color: #fff;
}
.btn--primary:hover {
  background: var(--flame-2);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-2);
}
.btn--outline:hover {
  border-color: var(--text-3);
  background: var(--bg-3);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-2);
  padding: 0.875rem 0;
}
.btn--ghost:hover { color: var(--text); }

.btn svg { flex-shrink: 0; }

/* ===== TAG ===== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--border-2);
  color: var(--text-2);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-slow), backdrop-filter var(--t-slow), box-shadow var(--t-slow);
}
.nav.scrolled {
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.06);
}

/* Inner wrapper — keeps content max-width but full-bleed bg */
.nav__inner {
  width: 100%;
  max-width: var(--max-w);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .nav__logo { margin-left: 0; }
}
.nav__logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--flame);
  display: inline-block;
}

/* ── Desktop nav links row ── */
.nav__links {
  display: none;
  align-items: center;
  gap: 0.15rem;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .nav__links { display: flex; }
}

/* Separator bar after logo */
.nav__sep {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.12);
  margin: 0 0.5rem 0 1rem;
  flex-shrink: 0;
}
@media (max-width: 1023px) { .nav__sep { display: none; } }

/* Single nav item (may contain dropdown) */
.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.nav__link:hover,
.nav__link.active {
  color: #fff;
}
.nav__link.active {
  background: rgba(255,255,255,0.07);
}

/* Chevron icon for dropdown items */
.nav__link-chevron {
  width: 12px;
  height: 12px;
  opacity: 0.45;
  transition: transform var(--t-fast), opacity var(--t-fast);
  flex-shrink: 0;
}
.nav__item:hover .nav__link-chevron,
.nav__item.open .nav__link-chevron {
  transform: rotate(180deg);
  opacity: 0.8;
}

/* "New" badge */
.nav__badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--flame);
  color: #fff;
  border-radius: var(--r-full);
  margin-left: 5px;
  line-height: 1.6;
}

/* ── Mega-menu dropdown panel ── */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 320px;
  background: rgba(14,14,14,0.96);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s 0.22s;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.nav__dropdown--sm { min-width: 280px; }
.nav__dropdown--wide { min-width: 280px; max-width: 300px; }
.nav__dropdown--wide .nav__dd-grid {
  grid-template-columns: 1fr;
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.nav__dropdown--wide .nav__dd-grid::-webkit-scrollbar { width: 5px; }
.nav__dropdown--wide .nav__dd-grid::-webkit-scrollbar-track { background: transparent; }
.nav__dropdown--wide .nav__dd-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
.nav__dropdown--wide .nav__dd-card { padding: 0.5rem 0.6rem; }
.nav__dropdown--wide .nav__dd-title { font-size: 0.82rem; }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.lang-switch:hover { background: rgba(255,255,255,0.1); color: #fff; }
.lang-switch svg { width: 14px; height: 14px; }

/* Invisible bridge to prevent gap mouseout */
.nav__dropdown::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav__item:hover .nav__dropdown,
.nav__item.open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s 0s;
}

/* Dropdown section label */
.nav__dd-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.75rem;
  padding: 0 0.25rem;
}

/* Dropdown grid */
.nav__dd-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}
.nav__dd-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.nav__dd-grid--5 { grid-template-columns: repeat(5, 1fr); }

/* Dropdown card item */
.nav__dd-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--r-md);
  transition: background var(--t-fast);
  text-decoration: none;
  color: inherit;
}
.nav__dd-card:hover {
  background: rgba(255,255,255,0.05);
}

.nav__dd-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.nav__dd-icon--flame { background: rgba(255,77,26,0.12); color: var(--flame); }
.nav__dd-icon--amber { background: rgba(255,179,64,0.12); color: var(--amber); }
.nav__dd-icon--white { background: rgba(255,255,255,0.06); color: var(--text-2); }

.nav__dd-icon svg { width: 18px; height: 18px; }

.nav__dd-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.3;
}
.nav__dd-desc {
  font-size: 0.75rem;
  color: var(--text-3);
  line-height: 1.5;
}

/* Simple link-list dropdown */
.nav__dd-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.nav__dd-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast);
  text-decoration: none;
}
.nav__dd-list a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}
.nav__dd-list a svg { width: 16px; height: 16px; color: var(--text-3); flex-shrink: 0; }

/* ── Right-side actions ── */
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-shrink: 0;
}

/* ── Medium desktop: compact nav ── */
@media (min-width: 1024px) and (max-width: 1200px) {
  .nav__link {
    padding: 0.5rem 0.5rem;
    font-size: 0.82rem;
  }
  .nav__actions .btn--primary {
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
  }
  .lang-switch {
    padding: 5px 9px;
    font-size: 0.74rem;
  }
}

/* ── Mobile menu toggle ── */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--t-base);
}

/* ── Mobile nav overlay ── */
.nav__mobile {
  position: fixed;
  inset: 72px 0 0 0;
  overflow-x: hidden;
  background: var(--bg);
  z-index: 998;
  padding: var(--s8) var(--pad);
  display: flex;
  flex-direction: column;
  gap: var(--s6);
  transform: translateX(100%);
  transition: transform var(--t-slow);
  overflow-y: auto;
}
.nav__mobile.open { transform: translateX(0); }

.nav__mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Mobile accordion parent */
.nav__mob-item {}
.nav__mob-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: none;
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--t-fast);
}
.nav__mob-trigger:hover { color: var(--text); }
a.nav__mob-trigger { cursor: pointer; }

.nav__mob-trigger svg {
  width: 18px; height: 18px;
  color: var(--text-3);
  transition: transform var(--t-fast);
  flex-shrink: 0;
}
.nav__mob-item.open .nav__mob-trigger svg { transform: rotate(180deg); }

/* Mobile sub-links */
.nav__mob-sub {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0 1rem 0.5rem;
}
.nav__mob-item.open .nav__mob-sub { display: flex; }

.nav__mob-sub a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text-3);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  text-decoration: none;
}
.nav__mob-sub a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

/* Legacy support */
.nav__mobile-link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-2);
  transition: color var(--t-fast);
}
.nav__mobile-link:hover { color: var(--text); }

/* Keep old centered nav hidden for pages that still use it */
.nav__center { display: none !important; }
.nav__center-link, .nav__center-indicator { display: none !important; }

/* ===== HERO ===== */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero__bg {
  display: none;
}

@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.05); }
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: var(--s8);
}
.hero__kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flame);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero__heading {
  font-size: clamp(3.25rem, 9vw, 8.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: var(--s8);
  max-width: 14ch;
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s8);
  flex-wrap: wrap;
}

.hero__desc {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-2);
  max-width: 380px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-shrink: 0;
}

.hero__scroll {
  position: absolute;
  bottom: clamp(3rem, 6vw, 5rem);
  right: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hero__scroll-line {
  width: 1.5px;
  height: 48px;
  background: linear-gradient(to bottom, var(--border-2), transparent);
}

/* ===== MARQUEE ===== */
.marquee {
  padding: var(--s8) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-2);
  margin-top: -25vh;
}

.marquee__track {
  display: flex;
  gap: var(--s12);
  animation: marquee-scroll 22s linear infinite;
  width: max-content;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: var(--s12);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.marquee__item span {
  color: var(--flame);
  font-size: 1.2rem;
}

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

/* ===== PROJECT CAROUSEL ===== */
.project-carousel {
  position: relative;
  width: 100%;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: var(--r-lg);
}

.project-carousel__container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.project-carousel__track .work-card {
  flex: 0 0 33.333%;
  width: 33.333%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-2);
  transition: all 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.project-carousel__track .work-card .work-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-carousel__track .work-card {
  opacity: 0.3;
  transform: scale(0.85);
  pointer-events: none;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.project-carousel__track .work-card.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 10;
}

.project-carousel__track .work-card.prev {
  opacity: 0.6;
  transform: scale(0.9);
  pointer-events: auto;
  cursor: pointer;
  z-index: 5;
}

.project-carousel__track .work-card.next {
  opacity: 0.6;
  transform: scale(0.9);
  pointer-events: auto;
  cursor: pointer;
  z-index: 5;
}

.project-carousel__track .work-card.far-prev,
.project-carousel__track .work-card.far-next {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* Override any remaining grid styles */
.project-carousel .work-card--large,
.project-carousel .work-card--medium,
.project-carousel .work-card--half,
.project-carousel .work-card--third {
  grid-column: span 1 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  flex: 0 0 33.333% !important;
}

.project-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-base);
  opacity: 0.8;
}

.project-carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.15);
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.project-carousel__arrow--prev {
  left: 1rem;
}

.project-carousel__arrow--next {
  right: 1rem;
}

.project-carousel__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.project-carousel__arrow:disabled:hover {
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
}

/* Carousel indicators */
.project-carousel__indicators {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 20;
}

.project-carousel__indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-2);
  cursor: pointer;
  transition: all var(--t-base);
}

.project-carousel__indicator.active {
  background: var(--flame);
  transform: scale(1.2);
}

/* Touch/drag support */
.project-carousel__track {
  cursor: grab;
  user-select: none;
}

.project-carousel__track.dragging {
  cursor: grabbing;
  transition: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .project-carousel {
    height: 350px;
  }

  .project-carousel__track .work-card {
    flex: 0 0 100%;
  }

  .project-carousel .work-card--large,
  .project-carousel .work-card--medium,
  .project-carousel .work-card--half,
  .project-carousel .work-card--third {
    flex: 0 0 100% !important;
  }
  
  .project-carousel__track .work-card.far-prev,
  .project-carousel__track .work-card.far-next {
    display: none;
  }

  .project-carousel__arrow {
    width: 40px;
    height: 40px;
  }

  .project-carousel__arrow--prev {
    left: 0.5rem;
  }

  .project-carousel__arrow--next {
    right: 0.5rem;
  }
}

@media (max-width: 1024px) {
  .project-carousel .work-card--large,
  .project-carousel .work-card--medium,
  .project-carousel .work-card--half,
  .project-carousel .work-card--third {
    grid-column: span 1 !important;
    flex: 0 0 auto !important;
  }
}

/* ===== HOME PROJECT CAROUSEL (peek-style) ===== */
.proj-carousel-wrap {
  margin-top: 3rem;
  padding-bottom: 1rem;
}

.proj-carousel-outer {
  position: relative;
  overflow: hidden;
  padding: 1rem 0 1.5rem;
}

.proj-carousel__track {
  display: flex;
  gap: 1.5rem;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.proj-carousel__slide {
  flex: 0 0 40%;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  text-decoration: none;
  display: block;
  border: 1px solid var(--border);
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.45s ease;
  opacity: 0.45;
  transform: scale(0.95);
  cursor: pointer;
}

.proj-carousel__slide.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

.proj-carousel__img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  width: 100%;
  background: var(--bg-2);
}

.proj-carousel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.proj-carousel__slide.active:hover .proj-carousel__img {
  transform: scale(1.03);
}

.proj-carousel__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.proj-carousel__meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.proj-carousel__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.proj-carousel__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.proj-carousel__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--t-base), border-color var(--t-base), color var(--t-base);
}

.proj-carousel__slide.active:hover .proj-carousel__cta {
  background: var(--flame);
  border-color: var(--flame);
  color: #fff;
}

/* Arrow buttons */
.proj-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-base), border-color var(--t-base), transform var(--t-base);
}

.proj-carousel__btn:hover {
  transform: translateY(-50%) scale(1.08);
}

.proj-carousel__btn--prev { left: 1.5rem; }
.proj-carousel__btn--next { right: 1.5rem; }

/* Dots */
.proj-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.proj-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border-2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--t-base), width var(--t-base), transform var(--t-base);
}

.proj-carousel__dot.active {
  background: var(--flame);
  width: 24px;
}

/* Responsive */
@media (max-width: 900px) {
  .proj-carousel__slide { flex: 0 0 60%; }
  .proj-carousel__name  { font-size: 1rem; }
}

@media (max-width: 600px) {
  .proj-carousel__slide    { flex: 0 0 75%; }
  .proj-carousel__btn      { width: 36px; height: 36px; }
  .proj-carousel__btn--prev { left: 0.5rem; }
  .proj-carousel__btn--next { right: 0.5rem; }
  .proj-carousel__cta      { display: none; }
}

.work-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform var(--t-slow), border-color var(--t-slow);
  cursor: pointer;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
}
.work-card:hover .work-card__image { transform: scale(1.04); }
.work-card:hover .work-card__arrow { opacity: 1; transform: translateX(0) translateY(0); }

.work-card--large { grid-column: span 7; }
.work-card--medium { grid-column: span 5; }
.work-card--half { grid-column: span 6; }
.work-card--third { grid-column: span 4; }

.work-card__image-wrap {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16/10;
}
.work-card--large .work-card__image-wrap { aspect-ratio: 4/3; }

.work-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Gradient placeholder for project images */
.work-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.06);
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.work-card:hover .work-card__image-placeholder { transform: scale(1.04); }

.work-card__body {
  padding: var(--s6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.work-card__info {}
.work-card__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s2);
}
.work-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.work-card__footer {
  padding: var(--s4) var(--s6);
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.btn--small {
  padding: var(--s2) var(--s4);
  font-size: 0.875rem;
}

.view-project-btn {
  width: 100%;
  justify-content: center;
}

.work-card__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-8px) translateY(8px);
  transition: opacity var(--t-base), transform var(--t-slow), border-color var(--t-fast);
}
.work-card:hover .work-card__arrow { border-color: var(--text-3); }

/* Gradient color themes for project cards */
.theme-medical    { background: linear-gradient(135deg, #0F2535 0%, #0E3A4A 100%); }
.theme-nonprofit  { background: linear-gradient(135deg, #1A2F1A 0%, #0F2A20 100%); }
.theme-escape     { background: linear-gradient(135deg, #1F1218 0%, #2A0D22 100%); }
.theme-shopify    { background: linear-gradient(135deg, #18160A 0%, #2A2208 100%); }
.theme-candy      { background: linear-gradient(135deg, #1A0F1F 0%, #2A0F2A 100%); }

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.service-card {
  padding: var(--s8);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color var(--t-base), background var(--t-base);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--flame), transparent);
  opacity: 0;
  transition: opacity var(--t-slow);
}
.service-card:hover {
  border-color: var(--border-2);
  background: var(--bg-3);
}
.service-card:hover::before { opacity: 1; }

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(255, 77, 26, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--flame);
  margin-bottom: var(--s6);
  transition: background var(--t-base);
}
.service-card:hover .service-card__icon { background: rgba(255, 77, 26, 0.1); }

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--s3);
}
.service-card__desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ===== ABOUT TEASER ===== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about-split__visual {
  position: relative;
}
.about-split__img-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-3);
  border: 1px solid var(--border);
}

.about-split__img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--s3);
  height: 100%;
  padding: var(--s6);
}

.about-split__img-cell {
  border-radius: var(--r-md);
  overflow: hidden;
}
.about-split__img-cell:first-child {
  grid-row: span 2;
  background: linear-gradient(160deg, #1A1410 0%, #2A1A08 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--s6);
}
.about-split__img-cell:nth-child(2) {
  background: linear-gradient(160deg, #0F1A1F 0%, #0A2030 100%);
}
.about-split__img-cell:nth-child(3) {
  background: linear-gradient(160deg, #1A0F1F 0%, #200A2A 100%);
}

.about-split__stat {
  font-family: var(--font-display);
}
.about-split__stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}
.about-split__stat-label {
  font-size: 0.8rem;
  color: var(--text-2);
  font-family: var(--font-body);
}

.about-split__badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--flame);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  border: 6px solid var(--bg);
}
.about-split__badge-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.about-split__badge-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

.about-split__content {}
.about-split__stats {
  display: flex;
  gap: var(--s8);
  margin: var(--s8) 0;
  padding: var(--s6) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-split__stat-item {}
.about-split__stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}
.about-split__stat-text {
  font-size: 0.8rem;
  color: var(--text-2);
}

.team-pills {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-top: var(--s6);
}
.team-pill {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s2) var(--s4) var(--s2) var(--s2);
  border-radius: var(--r-full);
  border: 1px solid var(--border-2);
  font-size: 0.85rem;
  font-weight: 500;
}
.team-pill__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}
.team-pill__avatar--m { background: linear-gradient(135deg, var(--flame), var(--flame-2)); }
.team-pill__avatar--l { background: linear-gradient(135deg, #4F7CFF, #7C4FFF); }

/* ===== TESTIMONIALS ===== */
.testimonials-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--s16);
  align-items: start;
}

.testimonials-sidebar { position: sticky; top: 120px; }
.testimonials-sidebar .section-title { margin-bottom: var(--s4); }
.testimonials-sidebar .section-desc { font-size: 1rem; margin-bottom: var(--s8); }

.rating-badge {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4) var(--s5);
  border-radius: var(--r-lg);
  background: var(--bg-3);
  border: 1px solid var(--border);
  width: max-content;
}
.rating-badge__stars {
  display: flex;
  gap: 2px;
  color: var(--amber);
  font-size: 0.9rem;
}
.rating-badge__text {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.rating-badge__sub { font-size: 0.7rem; color: var(--text-2); }

.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.testimonial-card {
  padding: var(--s8);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color var(--t-base);
}
.testimonial-card:hover { border-color: var(--border-2); }

.testimonial-card__quote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: var(--s6);
  position: relative;
}
.testimonial-card__quote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.8;
  color: var(--flame);
  opacity: 0.3;
  position: absolute;
  top: -10px;
  left: -8px;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--s4);
}
.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-2);
  flex-shrink: 0;
}
.testimonial-card__name {
  font-size: 0.9rem;
  font-weight: 600;
}
.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--text-2);
}

/* ===== FAQ ===== */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.faq-content {}
.faq-list { margin-top: var(--s8); }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-item__trigger {
  width: 100%;
  padding: var(--s6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--t-fast);
}
.faq-item__trigger:hover { color: var(--text-2); }

.faq-item__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-2);
  transition: transform var(--t-base), background var(--t-base), color var(--t-base);
}
.faq-item.open .faq-item__icon {
  background: var(--flame);
  border-color: var(--flame);
  color: #fff;
  transform: rotate(45deg);
}

.faq-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-item__body { max-height: 300px; }

.faq-item__answer {
  padding-bottom: var(--s6);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-2);
}

.faq-cta {
  padding: var(--s8);
  border-radius: var(--r-xl);
  background: var(--bg-3);
  border: 1px solid var(--border);
  text-align: center;
}
.faq-cta__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--s3);
}
.faq-cta__desc {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: var(--s6);
}

/* ===== TEMPLATES ===== */
.templates-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  margin-top: var(--s12);
}

.template-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform var(--t-slow), border-color var(--t-base);
}
.template-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
}

.template-card__preview {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}
.template-card__preview-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.06);
  transition: transform 0.6s ease;
}
.template-card:hover .template-card__preview-bg { transform: scale(1.06); }

.template-card__footer {
  padding: var(--s4) var(--s5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.template-card__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}
.template-card__price {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--flame);
}

/* Template color themes */
.t-verin    { background: linear-gradient(160deg, #0D0F1A, #111827); }
.t-aluro    { background: linear-gradient(160deg, #0F1A0D, #142010); }
.t-noctura  { background: linear-gradient(160deg, #1A0D1A, #201020); }
.t-spinergy { background: linear-gradient(160deg, #1A1000, #2A1A00); }

/* ===== CTA SECTION ===== */
.cta-section {
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
}

.cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  border-radius: var(--r-xl);
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s8);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at top right, rgba(255, 77, 26, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-inner__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: var(--s4);
}
.cta-inner__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.cta-inner__actions {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  align-items: flex-start;
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: clamp(3rem, 5vw, 4rem);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.footer__brand-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: var(--s2);
}
.footer__brand-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: var(--s6);
}
.footer__socials {
  display: flex;
  gap: var(--s3);
}
.footer__social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 0.85rem;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.footer__social:hover {
  border-color: var(--flame);
  color: var(--flame);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__col-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s5);
}
.footer__link {
  font-size: 0.875rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--t-fast);
  display: block;
}
.footer__link:hover { color: var(--text); }
.footer__desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: var(--s6);
}
.footer__column {}
.footer__column h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s5);
}
.footer__column ul {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.footer__column li a {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color var(--t-fast);
}
.footer__column li a:hover { color: var(--text); }

.footer__bottom {
  padding-top: var(--s6);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
}
.footer__copy {
  font-size: 0.8rem;
  color: var(--text-3);
}
.footer__bottom-links {
  display: flex;
  gap: var(--s6);
}
.footer__bottom-link {
  font-size: 0.8rem;
  color: var(--text-3);
  transition: color var(--t-fast);
}
.footer__bottom-link:hover { color: var(--text-2); }

/* ===== FOUNDER MODAL ===== */
.founder-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.founder-modal.active {
  opacity: 1;
  visibility: visible;
}

.founder-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.founder-modal__content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.founder-modal__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-base);
  z-index: 10;
}

.founder-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.founder-modal__image-container {
  max-width: 80vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-modal__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.founder-link {
  color: var(--flame);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast);
}

.founder-link:hover {
  border-bottom-color: var(--flame);
}

/* ===== PAGE HERO (interior pages) ===== */
.page-hero {
  padding-top: 100px;
  padding-bottom: 2.5rem;
}
.page-hero__heading {
  font-size: clamp(2.1rem, 4.9vw, 4.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  max-width: 16ch;
}
.page-hero__desc {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.7;
  margin-top: var(--s6);
}

/* ===== ABOUT PAGE ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
  margin-top: var(--s12);
}
.value-card {
  padding: var(--s8);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.value-card__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--border-2);
  line-height: 1;
  margin-bottom: var(--s4);
}
.value-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--s3);
}
.value-card__desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--s6);
  padding: var(--s8) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.process-step:first-child { border-top: 1px solid var(--border); }
.process-step__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-3);
  padding-top: 4px;
}
.process-step__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--s2);
}
.process-step__desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
  margin-top: var(--s12);
}
.team-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.team-card__photo {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}
.team-card__photo-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.04);
  transition: transform 0.6s ease;
}
.team-card:hover .team-card__photo-bg { transform: scale(1.04); }
.team-card__info {
  padding: var(--s6);
  border-top: 1px solid var(--border);
}
.team-card__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}
.team-card__role {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-top: var(--s1);
  margin-bottom: var(--s4);
}
.team-card__socials {
  display: flex;
  gap: var(--s2);
}
.team-card__social {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: 0.75rem;
  transition: all var(--t-fast);
}
.team-card__social:hover {
  border-color: var(--text-3);
  color: var(--text);
}

/* ===== CONTACT PAGE ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact-info__list {
  margin-top: var(--s8);
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
}
.contact-info__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--flame);
  flex-shrink: 0;
}
.contact-info__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s1);
}
.contact-info__value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
}

.form-group {
  margin-bottom: var(--s5);
}
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-2);
  text-transform: uppercase;
  margin-bottom: var(--s2);
}
.form-input,
.form-textarea {
  width: 100%;
  padding: var(--s4) var(--s5);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-3); }
.form-input:focus, .form-textarea:focus {
  border-color: var(--border-2);
  background: var(--bg-2);
}
.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

.form-submit {
  width: 100%;
  padding: var(--s5);
  background: var(--flame);
  color: #fff;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background var(--t-fast), transform var(--t-slow), box-shadow var(--t-slow);
  margin-top: var(--s2);
}
.form-submit:hover {
  background: var(--flame-2);
  transform: translateY(-2px);
}

/* ===== WORK PAGE ===== */
.work-page-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s5);
  margin-top: var(--s12);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.fade-in.visible { opacity: 1; }

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ===== DIVIDER ===== */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* =====================================================
   DRAGON FIRE HERO — v2
   ===================================================== */

/* ===== HERO LAYOUT ===== */
.hero--dragon {
  position: relative;
  min-height: 152vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  margin: 0;
  width: 100vw;
  max-width: none;
  overflow: visible;
}

/* ===== DRAGON ===== */
.dragon-wrap {
  position: absolute;
  top: -24%;
  left: -20%;
  width: 150%;
  height: 120%;
  z-index: 0;
  overflow: hidden;
}

.dragon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(0.65);
}

/* ===== FIRE ORIGIN ===== */
/*
  After flipping the dragon (scaleX(-1)), the mouth sits at roughly:
    x ≈ 78% of the dragon image width from the container's left edge
    y ≈ 22% of the dragon image height from the top

  Dragon height ≈ min(88vh,820px). At 800px tall with 0.65 aspect (w:h=0.65):
    displayed width ≈ 520px  (800 * 0.65)
    left edge       ≈ clamp(-80px,-5vw,-20px) ≈ -50px at 1440vw

  So mouth x in viewport ≈ -50 + 520*0.78 ≈ 356px ≈ 25vw
     mouth y in viewport ≈ (50vh - 400) + 800*0.22 ≈ 50vh - 224px
*/
.fire-origin {
  position: absolute;
  /* aligned to dragon's mouth */
  left:   clamp(110px, 18vw, 260px);
  top:    calc(50% - clamp(70px, 10vw, 130px));
  width:  calc(100% - clamp(160px, 23vw, 340px) - 2rem);
  height: clamp(130px, 18vw, 240px);
  z-index: 0;
  pointer-events: none;
  transform-origin: left center;
  opacity: 0.6;
}

.fire-origin::before {
  content: "";
  position: absolute;
  inset: 0;
}

/* Glitter/noise fire — horizontal fire breath from dragon's mouth */
.fire-origin::before {
  background-image:
    var(--glitter),
    var(--glitter),
    linear-gradient(
      90deg,
      white    0px,
      #ff8951  5px,
      #dcbc169c 30%,
      transparent 70%
    );
  background-size: 350px 500px, 400px 650px, 100% 100%;
  background-blend-mode: hard-light, color-dodge, multiply;
  background-position: 0px 0px, 0px 0px, 0% 50%;
  background-repeat: repeat, repeat, repeat;
  mix-blend-mode: color-dodge;
  filter: brightness(3.7) blur(7px) contrast(6);
  animation: fire-breath 1.75s linear infinite;
  box-shadow: inset -40px 0 50px -60px #63bbc5;
  /* Cone: full-height at the mouth (left edge), tapers to a tip toward the text (right) */
  mask-image: radial-gradient(ellipse 100% 90% at 0% 50%, black 60%, transparent 90%);
}

@keyframes fire-breath {
  0%   { background-position: 0px 0px,    0px 0px,    0% 50%; }
  100% { background-position: 0px -500px, 0px -650px, 0% 50%; }
}

/* ===== EMBER PARTICLES ===== */
.fire-embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ember {
  position: absolute;
  left: var(--ex, 20%);
  top:  var(--ey, 50%);
  width:  var(--es, 4px);
  height: var(--es, 4px);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #FFD040 45%, transparent 100%);
  animation: ember-rise var(--edur, 0.8s) ease-out infinite;
  animation-delay: var(--ed, 0s);
}

@keyframes ember-rise {
  0%   { opacity: 0;   transform: translate(0, 0) scale(0.5); }
  15%  { opacity: 0.9; transform: translate(4px, -8px) scale(1); }
  80%  { opacity: 0.5; }
  100% { opacity: 0;   transform: translate(12px, -60px) scale(0.2); }
}

/* ===== HERO FIRE TEXT ===== */
.hero__fire-text {
  position: absolute;
  right: 13vw;
  top: 25%;
  transform: translateY(-50%);
  z-index: 10;
  max-width: clamp(320px, 48vw, 680px);
  text-align: right;
  padding: 2rem;
}

/* "Websites that" — medium weight, white, fades up */
.fire-line-1 {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  opacity: 0;
  transform: translateY(16px);
  animation: hero-fade-up 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.2s;
  margin-bottom: 0.1em;
}

/* "actually" — large weight, orange, fades up */
/* "actually convert" — fire-colored, per-letter ignite animation */
/* NOTE: plain color + text-shadow used instead of background-clip:text
   so that opacity:0 → opacity:1 animation on child spans works reliably */
.fire-line-2 {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  /* solid flame color — reliable across all browsers */
  color: #FF5500;
  margin-bottom: 1.5rem;
  /* pulsing glow on the whole line */
  animation: fire-text-pulse 1.8s ease-in-out infinite alternate;
}

@keyframes fire-text-pulse {
  from {
    text-shadow:
      0 0 12px rgba(255, 80,  0, 0.7),
      0 0 30px rgba(255, 50,  0, 0.4),
      0 0 60px rgba(255, 100, 0, 0.2);
    color: #FF5500;
  }
  to {
    text-shadow:
      0 0 20px rgba(255, 140, 0, 0.9),
      0 0 50px rgba(255,  80, 0, 0.6),
      0 0 90px rgba(255, 160, 0, 0.3);
    color: #FF8800;
  }
}

/* Individual letter — stagger ignite from below with blur */
.fire-char {
  display: inline-block;
  opacity: 0;
  animation: char-ignite 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(0.65s + var(--i, 0) * 0.06s);
}

/* Space character */
.fire-char:nth-child(9) { width: 0.25em; }

@keyframes char-ignite {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.7);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

@keyframes hero-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero desc + actions inside dragon hero */
.hero--dragon .hero__kicker { margin-bottom: 0.75rem; }
.hero--dragon .hero__desc {
  font-size: clamp(0.875rem, 1.15vw, 1rem);
  max-width: 380px;
  color: var(--text-2);
  margin-bottom: 1.75rem;
}
.hero--dragon .hero__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
  margin-right: 2rem;
}

/* ===== PROJECT DETAIL PAGES ===== */
.project-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

.project-hero__meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.project-hero__category {
  background: var(--flame);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.project-hero__date {
  color: var(--text-3);
  font-size: 0.875rem;
}

.project-hero__title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.project-hero__description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 2rem;
}

.project-hero__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  color: var(--text-2);
}

.project-hero__main-image {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-gallery {
  margin-top: 3rem;
}

.project-gallery__main {
  margin-bottom: 2rem;
}

.project-gallery__image {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  transition: transform var(--t-slow);
}

.project-gallery__viewer {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.project-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-base);
}

.project-gallery__arrow:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-50%) scale(1.05);
}

.project-gallery__arrow--prev {
  left: 1rem;
}

.project-gallery__arrow--next {
  right: 1rem;
}

.project-gallery__counter {
  text-align: center;
  margin-top: 1rem;
  color: var(--text-3);
  font-size: 0.875rem;
}

.gallery-preview {
  cursor: pointer;
  transition: transform var(--t-base);
}

.gallery-preview:hover {
  transform: scale(1.02);
}

.project-gallery__item {
  cursor: pointer;
  transition: all var(--t-base);
  border: 2px solid transparent;
}

.project-gallery__item:hover {
  transform: scale(1.05);
  border-color: var(--flame);
}

.project-gallery__item.active {
  border-color: var(--flame);
  transform: scale(1.05);
}

.project-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-gallery__item {
  overflow: hidden;
  border-radius: var(--r-lg);
}

/* ===== LIGHTBOX MODAL ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.lightbox__content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-base);
  z-index: 10;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox__viewer {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-base);
  z-index: 10;
}

.lightbox__arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox__arrow--prev {
  left: 2rem;
}

.lightbox__arrow--next {
  right: 2rem;
}

.lightbox__counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-2);
  font-size: 0.875rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  backdrop-filter: blur(10px);
}

.project-details {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.project-details__section {
  margin-bottom: 3rem;
}

.project-details__section h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.project-details__section p {
  line-height: 1.7;
  color: var(--text-2);
}

.project-details__list {
  list-style: none;
  padding: 0;
}

.project-details__list li {
  padding: 0.5rem 0;
  color: var(--text-2);
  position: relative;
  padding-left: 1.5rem;
}

.project-details__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--flame);
  font-weight: bold;
}

.project-details__info {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
}

.project-details__info h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.project-details__info-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.project-details__info-item:last-child {
  border-bottom: none;
}

.project-details__info-item span:first-child {
  color: var(--text-3);
  flex-shrink: 0;
}

.project-details__info-item span:last-child {
  text-align: right;
  flex-shrink: 1;
  min-width: 0;
}

.related-projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.related-project {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-slow);
}

.related-project:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
}

.related-project__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.related-project__image img,
.related-project__image .work-card__image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-project__content {
  padding: 1.5rem;
}

.related-project__content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.related-project__content p {
  color: var(--text-3);
  font-size: 0.875rem;
}

/* Responsive for project pages */
@media (max-width: 1024px) {
  .project-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: right;
  }
  
  .project-hero__title {
    font-size: 2.5rem;
  }
  
  .project-details {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .related-projects {
    grid-template-columns: 1fr;
  }
  .hero__fire-text {
    text-align: right;
  }
  .fire-line-1 {
    font-size: clamp(1.4rem, 5.5vw, 2rem);
  }
  .fire-line-2 {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }
  .hero__fire-text {
    max-width: 100%;
  }
  .fire-line-1 {
    display: block;
  }
  .fire-line-2 {
    display: block;
  }
  .fire-line-1, .fire-line-2 {
    text-align: right;
  }
  .fire-line-1 {
    margin-bottom: 0.5rem;
  }
  .fire-line-2 {
    margin-bottom: 1rem;
  }
  .fire-line-1 {
    font-weight: bold;
  }
  .fire-line-2 {
    font-weight: normal;
  }
  .fire-line-1 {
    color: var(--text);
  }
  .fire-line-2 {
    color: var(--text-2);
  }
  .fire-line-1 {
    font-family: var(--font-display);
  }
  .fire-line-2 {
    font-family: var(--font-body);
  }
  .fire-line-1 {
    text-transform: uppercase;
  }
  .fire-line-2 {
    text-transform: none;
  }
  .fire-line-1 {
    letter-spacing: -0.02em;
  }
  .fire-line-2 {
    letter-spacing: 0;
  }
  .fire-line-1 {
    margin-right: 0.5rem;
  }
  .fire-line-2 {
    margin-right: 0;
  }
  .fire-line-1 {
    padding-right: 0.5rem;
  }
  .fire-line-2 {
    padding-right: 0;
  }
  .fire-line-1 {
    border-right: 1px solid var(--border);
  }
  .fire-line-2 {
    border-right: none;
  }
  .fire-line-1 {
    background: linear-gradient(to right, var(--flame), var(--amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .fire-line-2 {
    background: none;
    -webkit-background-clip: none;
    -webkit-text-fill-color: var(--text-2);
  }
  .fire-line-1 {
    animation: fire-line-anim 2s infinite;
  }
  .fire-line-2 {
    animation: none;
  }
  @keyframes fire-line-anim {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
    }
  }
}

@media (max-width: 768px) {
  .project-hero {
    padding: 2rem 0;
  }
  
  .project-hero__title {
    font-size: 2rem;
  }
  
  .project-gallery__grid {
    grid-template-columns: 1fr;
  }
  
  .project-details__info {
    padding: 1.5rem;
  }
}
@media (max-width: 1024px) {
  .work-card--large  { grid-column: span 12; }
  .work-card--medium { grid-column: span 12; }
  .work-card--half   { grid-column: span 6; }
  .work-card--third  { grid-column: span 6; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; }
  .about-split__visual { order: -1; }
  .about-split__img-wrap { max-width: 480px; aspect-ratio: 16/9; }
  .about-split__img-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; }
  .about-split__img-cell:first-child { grid-row: 1; }
  .about-split__badge { bottom: -16px; right: 16px; }

  .testimonials-layout { grid-template-columns: 1fr; }
  .testimonials-sidebar { position: static; }
  .faq-layout { grid-template-columns: 1fr; }
  .templates-scroll { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .work-page-grid .work-card--large  { grid-column: span 12; }
  .work-page-grid .work-card--medium { grid-column: span 12; }
  .work-page-grid .work-card--half   { grid-column: span 12; }
  .work-page-grid .work-card--third  { grid-column: span 6; }
}

@media (max-width: 1023px) {
  .nav__links { display: none !important; }
  .nav__sep { display: none !important; }
  .nav__actions { display: none !important; }
  .nav__toggle { display: flex; }

  .hero__bottom { flex-direction: column; align-items: flex-start; }

  .work-card--large, .work-card--medium, .work-card--half, .work-card--third {
    grid-column: span 12;
  }

  .services-grid { grid-template-columns: 1fr; }
  .about-split__img-wrap { aspect-ratio: 4/3; }
  .about-split__img-grid { padding: var(--s4); }
  .team-grid { grid-template-columns: 1fr; }
  .templates-scroll { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .work-page-grid .work-card { grid-column: span 12 !important; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .cta-inner { padding: var(--s8); }
  .templates-scroll { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .hero--dragon { padding-right: clamp(1.25rem, 3vw, 2.5rem); }
  .dragon-wrap  { 
    width: 100%;
    height: 100vh;
    left: 0;
    top: 0;
  }
  .fire-origin  {
    left: clamp(130px, 20vw, 280px);
    top: calc(50% - clamp(60px, 9vw, 160px));
    width: calc(100% - clamp(160px, 23vw, 340px) - 2rem);
  }
  .hero__fire-text { max-width: clamp(280px, 50vw, 580px); }
}

/* Mobile: stack vertically, dragon ghost behind text */
@media (max-width: 640px) {
  .hero--dragon {
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 var(--pad) clamp(3rem, 8vw, 5rem);
  }
  .dragon-wrap {
    display: none;
  }
  .fire-origin { display: none; }
  .hero__fire-text {
    max-width: 100%;
    z-index: 4;
  }
  .fire-line-1 { font-size: clamp(1.4rem, 5.5vw, 2rem); }
  .fire-line-2 { font-size: clamp(1.8rem, 7vw, 2.8rem); }
}

/* =====================================================
   SERVICE CARDS — ENHANCED HOVER
   ===================================================== */

.service-card__ghost-num {
  position: absolute;
  bottom: -0.25rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.025);
  line-height: 1;
  pointer-events: none;
  transition: color 0.5s ease, transform 0.5s ease;
  user-select: none;
}
.service-card:hover .service-card__ghost-num {
  color: rgba(255, 77, 26, 0.07);
  transform: scale(1.08) translateX(-4px);
}
.service-card .service-card__icon {
  transition: background var(--t-base), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-card:hover .service-card__icon {
  transform: translateY(-4px) scale(1.12);
}
.service-card {
  cursor: default;
}

/* =====================================================
   ABOUT PAGE — ENHANCED VISUALS
   ===================================================== */

 /* Page hero orbs */
 .page-hero {
   position: relative;
   overflow: hidden;
 }
 .about-hero-orb {
   position: absolute;
   border-radius: 50%;
   pointer-events: none;
   z-index: 0;
 }
.about-hero-orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 77, 26, 0.07) 0%, transparent 70%);
  top: -250px;
  right: -150px;
  animation: glow-drift 9s ease-in-out infinite alternate;
}
.about-hero-orb--2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 179, 64, 0.05) 0%, transparent 70%);
  bottom: -100px;
  left: -80px;
  animation: glow-drift 7s ease-in-out infinite alternate-reverse;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.about-accent-line {
  display: block;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--flame), var(--amber));
  margin-bottom: 1.5rem;
  transform-origin: left;
  animation: accent-line-grow 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}
@keyframes accent-line-grow {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* Floating particles */
@keyframes about-particle-float {
  0%   { transform: translateY(0) rotate(0deg) scale(1); opacity: 0; }
  15%  { opacity: 0.5; }
  85%  { opacity: 0.2; }
  100% { transform: translateY(-140px) rotate(180deg) scale(0.3); opacity: 0; }
}
.about-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--flame);
  animation: about-particle-float linear infinite;
  pointer-events: none;
}

/* Mission strip cells hover */
.about-stats-cell {
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
  cursor: default;
}
.about-stats-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 77, 26, 0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.about-stats-cell:hover::after { opacity: 1; }
.about-stats-cell .about-stats-num {
  transition: color 0.4s ease;
}
.about-stats-cell:hover .about-stats-num {
  color: var(--flame);
}

/* Team cards — glow lift */
.team-card {
  transition:
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 0.4s ease,
    box-shadow 0.5s ease !important;
}
.team-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 77, 26, 0.25) !important;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 77, 26, 0.1),
    0 0 60px rgba(255, 77, 26, 0.06) !important;
}
.team-card__photo {
  position: relative;
}
.team-card__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(255, 77, 26, 0.06) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.team-card:hover .team-card__photo::after { opacity: 1; }
.team-card:hover .team-card__photo-bg {
  transform: scale(1.07) !important;
}
.team-card__social:hover {
  background: rgba(255, 77, 26, 0.1) !important;
  border-color: rgba(255, 77, 26, 0.4) !important;
  color: var(--flame) !important;
}

/* Value cards — diagonal gradient reveal */
.value-card {
  transition:
    transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 0.4s ease,
    background 0.4s ease !important;
  position: relative;
  overflow: hidden;
}
.value-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 77, 26, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 77, 26, 0.2) !important;
  background: var(--bg-3) !important;
}
.value-card:hover::after { opacity: 1; }
.value-card__num {
  transition: color 0.5s ease;
}
.value-card:hover .value-card__num {
  color: rgba(255, 77, 26, 0.35);
}

/* Process steps — animated left accent */
.process-step {
  transition: padding-left 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}
.process-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: var(--s8);
  bottom: var(--s8);
  width: 2px;
  background: linear-gradient(to bottom, var(--flame), var(--amber));
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 2px;
}
.process-step:hover { padding-left: 1.25rem; }
.process-step:hover::before {
  opacity: 1;
  transform: scaleY(1);
}
.process-step__num {
  transition: color 0.3s ease;
}
.process-step:hover .process-step__num {
  color: var(--flame);
}
.process-step__title {
  transition: color 0.3s ease;
}
.process-step:hover .process-step__title {
  color: var(--text);
}

/* Story panel hover */
.story-panel-item {
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.story-panel-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  border-color: var(--border-2) !important;
}
.story-panel-label {
  transition: color 0.3s ease;
}
.story-panel-item:hover .story-panel-label {
  color: var(--flame);
}

/* Scroll velocity section on work page */
.scroll-velocity-section--work {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* About page heading gradient animation */
@keyframes about-heading-reveal {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  to {
    clip-path: inset(0 0% 0 0);
    opacity: 1;
  }
}

/* Pulsating flame badge on team/values */
@keyframes flame-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 26, 0.3); }
  50%       { box-shadow: 0 0 0 8px rgba(255, 77, 26, 0); }
}

/* Shimmer animation for team photo */
@keyframes shimmer-sweep {
  0%   { transform: translateX(-200%) skewX(-20deg); }
  100% { transform: translateX(300%) skewX(-20deg); }
}
.team-card__photo-shimmer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
  pointer-events: none;
}
.team-card__photo-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 100%
  );
  animation: shimmer-sweep 3.5s ease-in-out infinite 1s;
}

/* Work page scroll velocity — project name overlay */
.scroll-velocity-overlay {
  flex-direction: column;
  gap: 0.5rem;
}
.scroll-velocity-overlay-name {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.scroll-velocity-overlay-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

/* Enhanced scroll velocity on work page */
.scroll-velocity-link:hover .scroll-velocity-image {
  transform: scale(1.03);
}

/* Process timeline bar fill */
@keyframes bar-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Responsive tweaks for about enhancements */
@media (max-width: 768px) {
  .about-hero-orb--1 { width: 300px; height: 300px; }
  .about-hero-orb--2 { display: none; }
  .process-step:hover { padding-left: 0; }
  .process-step::before { display: none; }
}

/* ===== SERVICES PAGE ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s8);
  margin-top: var(--s12);
}

.service-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  background: var(--flame);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: var(--s6);
}

.service-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--s4);
  color: var(--text-1);
}

.service-card__description {
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: var(--s6);
}

.service-card__example h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: var(--s3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-example {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4);
  background: var(--bg-1);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-example:hover {
  border-color: var(--flame);
  transform: translateY(-2px);
}

.service-example img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--r-md);
}

.service-example__content {
  flex: 1;
}

.service-example__content h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 0.25rem;
}

.service-example__content p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.4;
}

.service-example--placeholder {
  justify-content: center;
  padding: var(--s6);
}

.service-example__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  color: var(--text-2);
  text-align: center;
}

.service-example__placeholder svg {
  opacity: 0.5;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }
  
  .service-card {
    padding: var(--s6);
  }
  
  .service-example {
    flex-direction: column;
    text-align: center;
  }
  
  .service-example img {
    width: 100%;
    height: 120px;
  }
}

/* ===== TESTIMONIALS MINI GRID ===== */
.testimonials-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* =====================================================
   NEW SERVICES SECTION
   ===================================================== */
.ns-section {
  position: relative;
  z-index: 1;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ns-header {
  max-width: 1152px;
  margin: 0 auto;
  padding: 80px 24px 64px;
  text-align: center;
}

.ns-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ff4d00;
  margin-bottom: 16px;
}

.ns-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 24px;
}

.ns-headline span { color: #ff4d00; }

.ns-subline {
  color: #888;
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

.ns-content {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.ns-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.ns-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .ns-grid-3, .ns-grid-2 { grid-template-columns: 1fr; }
}

.ns-card {
  background: #161616;
  border: 1px solid #252525;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
  cursor: default;
}

.ns-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 0, 0.33);
}

.ns-card-img-wrap {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.ns-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.ns-card:hover .ns-card-img-wrap img {
  transform: scale(1.05);
}

.ns-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(14,14,14,0.7) 100%);
}

.ns-card-icon {
  position: absolute;
  bottom: 16px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ff4d00;
  box-shadow: 0 0 20px rgba(255, 77, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ns-card-icon svg { display: block; }

.ns-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #ff4d00;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
}

.ns-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ns-card-body.wide {
  flex-direction: row;
  gap: 40px;
}

.ns-card-body.wide .ns-card-left,
.ns-card-body.wide .ns-card-right {
  flex: 1;
}

@media (max-width: 900px) {
  .ns-card-body.wide { flex-direction: column; gap: 16px; }
}

.ns-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
}

.ns-card-desc {
  color: #888;
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.ns-card-body.wide .ns-card-desc { margin-bottom: 0; }

.ns-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding-left: 0;
}

.ns-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aaa;
  font-size: 0.85rem;
}

.ns-bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4d00;
  flex-shrink: 0;
}

.ns-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ff4d00;
  font-size: 0.85rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: auto;
  text-decoration: none;
}

.ns-card-link svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.ns-card-link:hover svg { transform: translateX(4px); }

.ns-cta-box {
  margin-top: 48px;
  background: rgba(22, 22, 22, 0.75);
  border: 1px solid #252525;
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  backdrop-filter: blur(12px);
}

.ns-cta-eyebrow {
  display: block;
  color: #888;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ns-cta-headline {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.ns-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff4d00;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ns-cta-btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* =====================================================
   NEW TESTIMONIALS SECTION
   ===================================================== */
.testi-section {
  position: relative;
  background: var(--bg);
  padding: 80px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testi-header {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.testi-label {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 4px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.testi-title {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}

.testi-desc {
  color: var(--text-muted);
  opacity: 0.75;
}

.testi-mask {
  display: flex;
  justify-content: center;
  gap: 24px;
  max-height: 740px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  padding: 0 24px;
}

.testi-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 350px;
  animation: testi-scroll var(--duration, 20s) linear infinite;
}

.testi-col:hover {
  animation-play-state: paused;
}

@keyframes testi-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(calc(-50% - 12px)); }
}

.testi-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  flex-shrink: 0;
}

.testi-card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ddd;
  margin-bottom: 24px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.testi-author-info {
  display: flex;
  flex-direction: column;
}

.testi-author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.testi-author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .testi-col-3 { display: none; }
}

@media (max-width: 768px) {
  .testi-col-2 { display: none; }
}

/* =====================================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   ===================================================== */

/* Disable expensive backdrop-filter on mobile — use solid fallback */
@media (max-width: 1024px) {
  .nav.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(8, 8, 8, 0.95) !important;
  }
  .nav__dropdown {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(14, 14, 14, 0.98) !important;
  }
  .project-carousel__arrow,
  .proj-carousel__btn,
  .project-gallery__arrow,
  .lightbox__overlay,
  .lightbox__counter,
  .founder-modal__overlay,
  .ns-cta-box {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .lightbox__overlay { background: rgba(0, 0, 0, 0.97) !important; }
  .founder-modal__overlay { background: rgba(0, 0, 0, 0.95) !important; }
  .project-carousel__arrow,
  .proj-carousel__btn,
  .project-gallery__arrow {
    background: rgba(30, 30, 30, 0.9) !important;
  }

  /* Pause continuous non-essential animations on mobile */
  .scroll-velocity-row,
  .scroll-velocity-row--forward,
  .scroll-velocity-row--reverse {
    animation-duration: 60s !important;
  }
  .testi-col {
    animation: none !important;
  }
  .team-card__photo-shimmer::after {
    animation: none !important;
  }
  .about-hero-orb {
    animation: none !important;
  }
  .about-particle {
    display: none !important;
  }
}

/* Even more aggressive on small phones */
@media (max-width: 768px) {
  .scroll-velocity-row,
  .scroll-velocity-row--forward,
  .scroll-velocity-row--reverse {
    animation: none !important;
  }
  .scroll-velocity-image {
    transition: none !important;
  }
  .scroll-velocity-image:hover {
    transform: none !important;
  }

  /* Speed up reveal animations on mobile so content doesn't sit invisible */
  .fade-up {
    transition: opacity 0.35s ease, transform 0.35s ease !important;
  }
  .fade-in {
    transition: opacity 0.35s ease !important;
  }
  .delay-1 { transition-delay: 0.05s !important; }
  .delay-2 { transition-delay: 0.1s !important; }
  .delay-3 { transition-delay: 0.15s !important; }
  .delay-4 { transition-delay: 0.2s !important; }
  .delay-5 { transition-delay: 0.25s !important; }

  /* Service page reveal animations — speed up on mobile */
  .reveal {
    transition: opacity 0.35s ease, transform 0.35s ease !important;
  }
  .reveal-delay-1 { transition-delay: 0.04s !important; }
  .reveal-delay-2 { transition-delay: 0.08s !important; }
}

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

/* =====================================================
   COMPREHENSIVE MOBILE FIXES
   ===================================================== */
@media (max-width: 768px) {

  /* 1 ── Nav: hide CTA buttons on mobile, rely on hamburger menu */
  .nav__actions { display: none !important; }

  /* 2 ── Utility: collapse any grid tagged mobile-stack to a single column */
  .mobile-stack {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* 3 ── About page: 3-col stats strip → single column */
  .about-stats-grid {
    grid-template-columns: 1fr !important;
  }
  .about-stats-grid .about-stats-cell {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 1.5rem var(--pad) !important;
  }
  .about-stats-grid .about-stats-cell:last-child {
    border-bottom: none !important;
  }

  /* 4 ── About page: 2-col story / process sections → single column */
  .about-split-story,
  .about-split-values {
    grid-template-columns: 1fr !important;
  }
  /* Un-stick the sticky sidebar when stacked */
  .about-split-values [style*="sticky"] {
    position: relative !important;
    top: auto !important;
  }

  /* 5 ── Page hero padding — less top breathing room on small screens */
  .page-hero {
    padding-top: 90px !important;
    padding-bottom: 1.5rem !important;
  }

  /* 6 ── Display sizes — tighten up on mobile */
  .display-1 { font-size: clamp(2.2rem, 8vw, 3rem); }
  .display-2 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .page-hero__heading { font-size: clamp(1.9rem, 7vw, 2.8rem) !important; }

  /* 7 ── Section spacing — reduce vertical padding on mobile */
  .section { padding: clamp(3rem, 8vw, 5rem) 0 !important; }
  .section--sm { padding: clamp(2rem, 5vw, 3rem) 0 !important; }
}
