/* TXEVA Projects — a focused 3D portfolio experience */

.projects-page {
  --projects-bg: #050505;
  --projects-panel: #0c0d0b;
  --projects-lime: #94b715;
  --projects-lime-bright: #b7dc28;
  --projects-line: rgba(255, 255, 255, 0.12);
  --projects-muted: #999d92;
  min-height: 100%;
  color: #fff;
  background: var(--projects-bg);
}

.projects-page::selection {
  color: #0b0c08;
  background: var(--projects-lime-bright);
}

.projects-page a {
  text-decoration: none;
}

.projects-container {
  width: min(100% - 48px, 1320px);
  margin-inline: auto;
}

.projects-skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 5000;
  padding: 10px 16px;
  color: #050505;
  background: var(--projects-lime-bright);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.projects-skip-link:focus {
  transform: translateY(0);
}

/* Header */
.projects-page .projects-header {
  height: 88px;
  background: rgba(5, 5, 5, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  transition: height 300ms ease, background 300ms ease, border-color 300ms ease;
}

.projects-page .projects-header.scrolled {
  height: 72px;
  background: rgba(5, 5, 5, 0.9);
  border-bottom-color: rgba(148, 183, 21, 0.18);
}

.projects-page .header-container {
  width: min(100% - 48px, 1320px);
  max-width: none;
  padding: 0;
  align-items: center;
  justify-content: space-between;
}

.projects-page .logo-area {
  padding: 0;
}

.projects-page .header-logo {
  width: 122px;
  height: auto;
}

.projects-page .nav-links {
  padding: 0;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.projects-page .nav-item {
  position: relative;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 220ms ease;
}

.projects-page .nav-item::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--projects-lime-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms ease;
}

.projects-page .nav-item:hover,
.projects-page .nav-item.active {
  color: #fff;
  text-decoration: none;
}

.projects-page .nav-item:hover::after,
.projects-page .nav-item.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.projects-page .header-actions {
  gap: 16px;
}

.projects-page .lang-btn {
  font-size: 14px;
}

.projects-page .lang-dropdown {
  background: #10110f;
}

.projects-page .lang-opt {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
}

.projects-page .projects-header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-color: rgba(148, 183, 21, 0.42);
  border-radius: 3px;
  font-size: 14px;
  background: rgba(148, 183, 21, 0.08);
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.projects-page .projects-header-cta:hover {
  color: #0a0b08;
  background: var(--projects-lime-bright);
  transform: translateY(-2px);
}

.projects-page .mobile-menu-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--projects-line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
}

.projects-page .mobile-menu-toggle span {
  width: 18px;
  height: 1px;
  background: #fff;
  transition: transform 260ms ease;
}

.projects-page .mobile-menu-toggle.active span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.projects-page .mobile-menu-toggle.active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
.projects-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 150px 0 50px;
  background:
    radial-gradient(circle at 48% 50%, rgba(148, 183, 21, 0.07), transparent 30%),
    linear-gradient(180deg, #060706, #030303);
  isolation: isolate;
}

.projects-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 94%);
}

.projects-grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(148, 183, 21, 0.12) 50%, transparent 65%);
  transform: translateX(-80%);
  animation: gridSweep 9s ease-in-out infinite;
  animation-play-state: paused;
}

.projects-hero.is-in-view .projects-grid-bg::after {
  animation-play-state: running;
}

@keyframes gridSweep {
  0%,
  30% {
    transform: translateX(-80%);
  }

  70%,
  100% {
    transform: translateX(80%);
  }
}

.projects-hero-x {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -2;
  width: min(58vw, 750px);
  opacity: 0.09;
  filter: drop-shadow(0 0 40px rgba(148, 183, 21, 0.22));
  transform: translate(calc(-50% + var(--hero-x, 0px)), calc(-50% + var(--hero-y, 0px))) rotate(-8deg);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.projects-hero-orb {
  position: absolute;
  z-index: -1;
  width: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(110px);
  background: var(--projects-lime);
}

.projects-hero-orb-a {
  top: 6%;
  right: -170px;
}

.projects-hero-orb-b {
  bottom: -220px;
  left: 8%;
}

.projects-hero-inner {
  position: relative;
  min-height: calc(100svh - 200px);
  display: flex;
  flex-direction: column;
}

.projects-hero-meta,
.showcase-heading,
.project-info-head,
.project-dialog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.projects-kicker {
  color: var(--projects-lime-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.projects-availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.projects-availability i {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--projects-lime-bright);
  box-shadow: 0 0 12px var(--projects-lime-bright);
}

.projects-availability i::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--projects-lime);
  border-radius: 50%;
  animation: availabilityPulse 2s ease-out infinite;
  animation-play-state: paused;
}

.projects-hero.is-in-view .projects-availability i::after {
  animation-play-state: running;
}

@keyframes availabilityPulse {
  from {
    opacity: 0.8;
    transform: scale(0.5);
  }

  to {
    opacity: 0;
    transform: scale(1.5);
  }
}

.projects-hero-title {
  margin: auto 0;
  padding: 7vh 0 4vh;
  font-family: "Outfit", "Fustat", sans-serif;
  font-size: clamp(4rem, 8.4vw, 8.6rem);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.065em;
}

.hero-title-line {
  display: block;
}

.hero-title-line:first-child {
  padding-left: clamp(0px, 6vw, 90px);
}

.hero-title-accent {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.74);
}

.hero-title-accent::first-letter {
  color: var(--projects-lime-bright);
  -webkit-text-stroke-color: var(--projects-lime-bright);
}

.projects-hero-bottom {
  display: grid;
  grid-template-columns: minmax(260px, 480px) auto;
  gap: 40px;
  align-items: end;
  justify-content: space-between;
  margin-top: auto;
}

.projects-hero-copy {
  padding-left: 24px;
  border-left: 1px solid var(--projects-lime);
  color: #b6b9b0;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
}

.projects-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.projects-scroll-cue svg {
  color: var(--projects-lime-bright);
  animation: cueBounce 1.8s ease-in-out infinite;
  animation-play-state: paused;
}

.projects-hero.is-in-view .projects-scroll-cue svg {
  animation-play-state: running;
}

@keyframes cueBounce {
  0%,
  100% {
    transform: translateY(-2px);
  }

  50% {
    transform: translateY(4px);
  }
}

.projects-hero-index {
  position: absolute;
  top: 50%;
  right: -28px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
  letter-spacing: 0.15em;
  transform: translateY(-50%) rotate(90deg);
}

.projects-hero-index .index-line {
  width: 66px;
  height: 1px;
  background: linear-gradient(90deg, var(--projects-lime), rgba(255, 255, 255, 0.15));
}

/* 3D carousel */
.project-showcase {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 120px 0 140px;
  border-top: 1px solid rgba(148, 183, 21, 0.17);
  background:
    radial-gradient(ellipse at 32% 48%, rgba(148, 183, 21, 0.075), transparent 40%),
    #070807;
}

.project-showcase::before {
  content: "TXEVA";
  position: absolute;
  right: -2vw;
  bottom: -7vw;
  color: rgba(255, 255, 255, 0.017);
  font-family: "Outfit", sans-serif;
  font-size: 29vw;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.showcase-heading {
  align-items: end;
  gap: 50px;
  margin-bottom: 50px;
}

.showcase-heading h2 {
  margin-top: 12px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.showcase-heading > p {
  max-width: 260px;
  color: var(--projects-muted);
  font-size: 14px;
}

.project-experience {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.65fr);
  gap: clamp(50px, 7vw, 110px);
  align-items: center;
}

.carousel-column {
  min-width: 0;
}

.project-carousel {
  --card-width: min(38vw, 510px);
  --card-height: min(25vw, 330px);
  --ring-radius: min(36vw, 470px);
  position: relative;
  height: 510px;
  outline: none;
  perspective: 1500px;
  perspective-origin: 50% 47%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.project-carousel:active,
.project-carousel.is-dragging {
  cursor: grabbing;
}

.project-carousel:focus-visible {
  outline: 1px solid var(--projects-lime);
  outline-offset: 10px;
}

.project-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--card-width);
  height: var(--card-height);
  transform: translate(-50%, -50%) rotateY(0deg);
  transform-style: preserve-3d;
  will-change: transform;
}

.project-card {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  transform: rotateY(calc(var(--card-index) * 90deg)) translateZ(var(--ring-radius));
  transform-style: preserve-3d;
  transition: opacity 500ms ease, filter 500ms ease;
  filter: saturate(0.35) brightness(0.7);
  backface-visibility: hidden;
  pointer-events: none;
}

.project-card.is-nearby {
  opacity: 0.7;
  filter: saturate(0.65) brightness(0.83);
}

.project-card.is-active {
  z-index: 4;
  opacity: 1;
  filter: none;
  pointer-events: auto;
}

.project-card-surface {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #141611;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.58);
  transform: translateZ(0);
}

.project-card-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(148, 183, 21, 0);
  border-radius: inherit;
  transition: border-color 350ms ease, box-shadow 350ms ease;
  pointer-events: none;
}

.project-card.is-active:hover .project-card-surface::after {
  border-color: rgba(183, 220, 40, 0.68);
  box-shadow: inset 0 0 40px rgba(148, 183, 21, 0.08);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 500ms ease;
}

.project-card.is-active:hover img {
  transform: scale(1.045);
}

.project-card-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 28%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.77), transparent 44%);
  pointer-events: none;
}

.project-card-topline,
.project-card-caption {
  position: absolute;
  right: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-card-topline {
  top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.project-card-topline span:first-child {
  color: var(--projects-lime-bright);
}

.project-card-caption {
  bottom: 18px;
}

.project-card-caption p {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.35rem, 2.3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.card-open-button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  color: #fff;
  background: rgba(5, 5, 5, 0.45);
  transition: color 260ms ease, background 260ms ease, transform 260ms ease;
}

.card-open-button:hover {
  color: #080a06;
  background: var(--projects-lime-bright);
  transform: rotate(8deg);
}

.carousel-light {
  position: absolute;
  top: 47%;
  left: 50%;
  width: 55%;
  height: 60%;
  border-radius: 50%;
  background: rgba(148, 183, 21, 0.16);
  filter: blur(80px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.carousel-orbit-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88%;
  height: 40%;
  border: 1px solid rgba(148, 183, 21, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 35px rgba(148, 183, 21, 0.035);
  pointer-events: none;
}

.carousel-orbit-line::before,
.carousel-orbit-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--projects-lime-bright);
  box-shadow: 0 0 12px var(--projects-lime-bright);
}

.carousel-orbit-line::before {
  left: -3px;
}

.carousel-orbit-line::after {
  right: -3px;
}

.carousel-drag-label {
  position: absolute;
  bottom: 6px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  letter-spacing: 0.18em;
  transform: translateX(-50%);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 4px;
}

.carousel-arrow {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--projects-line);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
  transition: color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.carousel-arrow:hover {
  color: var(--projects-lime-bright);
  border-color: var(--projects-lime);
  transform: scale(1.08);
}

.carousel-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-dot {
  width: 36px;
  height: 20px;
  border: 0;
  background: transparent;
}

.pagination-dot span {
  display: block;
  width: 100%;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.pagination-dot span::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--projects-lime-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}

.pagination-dot.is-active span::after {
  transform: scaleX(1);
}

.project-info {
  position: relative;
  min-height: 500px;
  padding: 34px 0 24px 34px;
  border-left: 1px solid var(--projects-line);
}

.project-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: -1px;
  width: 1px;
  height: 90px;
  background: var(--projects-lime-bright);
  box-shadow: 0 0 15px rgba(183, 220, 40, 0.6);
}

.project-info.is-changing > * {
  animation: infoSwap 460ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes infoSwap {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-info-head {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.project-category {
  margin-top: 70px;
  color: var(--projects-lime-bright);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-info h3 {
  max-width: 440px;
  margin-top: 17px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.project-description {
  max-width: 410px;
  margin-top: 26px;
  color: #a7aaa2;
  font-size: 15px;
  line-height: 1.72;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.project-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.project-view-button {
  display: flex;
  width: 100%;
  max-width: 290px;
  min-height: 57px;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-left: 20px;
  border: 1px solid rgba(148, 183, 21, 0.42);
  border-radius: 2px;
  color: #fff;
  background: rgba(148, 183, 21, 0.05);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  overflow: hidden;
  transition: color 260ms ease, background 260ms ease;
}

.project-view-button:hover {
  color: #090a07;
  background: var(--projects-lime-bright);
}

.view-button-icon {
  display: inline-flex;
  width: 56px;
  min-height: 55px;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(148, 183, 21, 0.42);
}

/* Manifesto */
.projects-manifesto {
  position: relative;
  padding: 145px 0;
  overflow: hidden;
  border-top: 1px solid var(--projects-line);
  background: #050505;
}

.projects-manifesto::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -8%;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(148, 183, 21, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(148, 183, 21, 0.018),
    0 0 0 110px rgba(148, 183, 21, 0.012);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 50px 80px;
}

.manifesto-copy {
  max-width: 920px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.manifesto-copy::first-letter {
  color: var(--projects-lime-bright);
}

.manifesto-stats {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  border-top: 1px solid var(--projects-line);
}

.manifesto-stats > div {
  padding: 28px 20px 0 0;
  border-right: 1px solid var(--projects-line);
}

.manifesto-stats > div:not(:first-child) {
  padding-left: 22px;
}

.manifesto-stats > div:last-child {
  border-right: 0;
}

.manifesto-stats strong,
.manifesto-stats span {
  display: block;
}

.manifesto-stats strong {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 1;
}

.manifesto-stats span {
  margin-top: 10px;
  color: var(--projects-muted);
  font-size: 9px;
  letter-spacing: 0.13em;
}

/* CTA and footer */
.projects-cta {
  position: relative;
  padding: 105px 0 125px;
  overflow: hidden;
  color: #090a07;
  background: var(--projects-lime);
}

.projects-cta-marquee {
  position: absolute;
  top: 18px;
  left: 0;
  display: flex;
  width: max-content;
  color: rgba(7, 7, 7, 0.24);
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  animation: ctaMarquee 26s linear infinite;
  animation-play-state: paused;
}

.projects-cta.is-in-view .projects-cta-marquee {
  animation-play-state: running;
}

.projects-page.page-hidden .projects-grid-bg::after,
.projects-page.page-hidden .projects-availability i::after,
.projects-page.page-hidden .projects-scroll-cue svg,
.projects-page.page-hidden .projects-cta-marquee {
  animation-play-state: paused !important;
}

.projects-cta-marquee > div {
  display: flex;
  align-items: center;
}

.projects-cta-marquee span {
  padding: 0 26px;
}

.projects-cta-marquee i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

@keyframes ctaMarquee {
  to {
    transform: translateX(-50%);
  }
}

.projects-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 50px;
}

.projects-cta .projects-kicker {
  grid-column: 1 / -1;
  color: rgba(7, 7, 7, 0.6);
}

.projects-cta h2 {
  max-width: 900px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(3.4rem, 7vw, 7.5rem);
  font-weight: 500;
  line-height: 0.89;
  letter-spacing: -0.065em;
}

.projects-cta-button {
  display: inline-flex;
  width: 150px;
  height: 150px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(7, 7, 7, 0.45);
  border-radius: 50%;
  color: #090a07;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: color 280ms ease, background 280ms ease, transform 280ms ease;
}

.projects-cta-button:hover {
  color: #fff;
  background: #090a07;
}

.projects-footer {
  padding: 72px 0 28px;
  border-top: 1px solid var(--projects-line);
  background: #050505;
}

.projects-footer-main {
  display: grid;
  grid-template-columns: 0.65fr 1fr 0.8fr;
  gap: 60px;
  align-items: start;
  padding-bottom: 60px;
}

.projects-footer-brand img {
  width: 140px;
}

.projects-footer-main > p {
  max-width: 410px;
  color: var(--projects-muted);
  font-size: 15px;
  line-height: 1.7;
}

.projects-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px 25px;
}

.projects-footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  transition: color 180ms ease;
}

.projects-footer-links a:hover {
  color: var(--projects-lime-bright);
}

.projects-footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 25px;
  border-top: 1px solid var(--projects-line);
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Project dialog */
.project-dialog {
  width: min(94vw, 1200px);
  max-height: 92vh;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(183, 220, 40, 0.28);
  border-radius: 8px;
  color: #fff;
  background: #090a08;
  box-shadow: 0 50px 150px rgba(0, 0, 0, 0.8);
}

.project-dialog[open] {
  animation: dialogIn 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(18px);
  animation: backdropIn 300ms ease;
}

@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
}

@keyframes backdropIn {
  from {
    opacity: 0;
  }
}

.project-dialog-shell {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  max-height: 90vh;
  overflow: auto;
}

.project-dialog-media {
  min-height: 670px;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(148, 183, 21, 0.1), transparent 50%),
    #11120f;
}

.project-dialog-media img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
  border-radius: 4px;
}

.project-dialog-copy {
  padding: 55px 45px 40px;
}

.project-dialog-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: #11120f;
}

.project-dialog-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1px;
  background: #fff;
}

.project-dialog-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.project-dialog-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.project-dialog-copy .project-category {
  margin-top: 65px;
}

.project-dialog-copy h2 {
  margin-top: 17px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.7rem, 4vw, 4.8rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.project-dialog-copy > p:not(.project-category) {
  margin-top: 25px;
  color: #a9aca4;
  font-size: 14px;
  line-height: 1.7;
}

.dialog-outcomes {
  display: grid;
  gap: 23px;
  margin-top: 35px;
  padding-top: 30px;
  border-top: 1px solid var(--projects-line);
}

.dialog-outcomes span {
  color: var(--projects-lime-bright);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.dialog-outcomes p {
  margin-top: 6px;
  color: #a9aca4;
  font-size: 13px;
  line-height: 1.6;
}

.project-dialog-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 35px;
  padding: 17px 0;
  border-top: 1px solid var(--projects-line);
  border-bottom: 1px solid var(--projects-line);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.project-dialog-cta span:last-child {
  color: var(--projects-lime-bright);
  font-size: 18px;
}

/* Motion helpers */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.projects-hero-title .reveal-item:nth-child(2) {
  transition-delay: 110ms;
}

.projects-hero-bottom .reveal-item:nth-child(2) {
  transition-delay: 150ms;
}

.projects-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(148, 183, 21, 0.07), transparent 66%);
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  transition: opacity 300ms ease;
}

/* RTL */
.projects-page.rtl-lang {
  direction: rtl;
}

.projects-page.rtl-lang .project-info {
  padding-right: 34px;
  padding-left: 0;
  border-right: 1px solid var(--projects-line);
  border-left: 0;
}

.projects-page.rtl-lang .project-info::before {
  right: -1px;
  left: auto;
}

.projects-page.rtl-lang .projects-hero-copy {
  padding-right: 24px;
  padding-left: 0;
  border-right: 1px solid var(--projects-lime);
  border-left: 0;
}

.projects-page.rtl-lang .hero-title-line:first-child {
  padding-right: clamp(0px, 6vw, 90px);
  padding-left: 0;
}

.projects-page.rtl-lang .project-view-button {
  padding-right: 20px;
  padding-left: 0;
}

.projects-page.rtl-lang .view-button-icon {
  border-right: 1px solid rgba(148, 183, 21, 0.42);
  border-left: 0;
}

.projects-page.rtl-lang .project-tags {
  direction: rtl;
}

.projects-page.rtl-lang .lang-opt {
  text-align: right;
}

/* Responsive */
@media (max-width: 1100px) {
  .projects-page .nav-links {
    gap: 1.5rem;
  }

  .project-experience {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .project-carousel {
    --card-width: min(56vw, 510px);
    --card-height: min(37vw, 330px);
    --ring-radius: min(48vw, 430px);
  }

  .project-info {
    min-height: 0;
    padding: 30px 0 0;
    border-top: 1px solid var(--projects-line);
    border-left: 0;
  }

  .project-info::before {
    top: -1px;
    left: 0;
    width: 100px;
    height: 1px;
  }

  .project-category {
    margin-top: 34px;
  }

  .project-info h3 {
    max-width: 680px;
  }

  .project-info .project-description {
    max-width: 680px;
  }

  .projects-page.rtl-lang .project-info {
    padding: 30px 0 0;
    border-top: 1px solid var(--projects-line);
    border-right: 0;
  }

  .projects-page.rtl-lang .project-info::before {
    right: 0;
  }
}

@media (max-width: 900px) {
  .projects-page .projects-header-cta {
    display: none;
  }

  .projects-page .mobile-menu-toggle {
    display: flex;
  }

  .projects-page .nav-links {
    top: 72px;
    left: auto;
    right: -100%;
    width: 100%;
    height: calc(100svh - 72px);
    align-items: flex-start;
    padding: 50px 24px;
    background: rgba(5, 5, 5, 0.98);
    transition: right 380ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .projects-page .nav-links.active {
    right: 0;
    left: auto;
  }

  .projects-page .nav-item {
    font-family: "Outfit", sans-serif;
    font-size: clamp(2rem, 8vw, 4rem);
  }

  .manifesto-grid {
    grid-template-columns: 1fr;
  }

  .manifesto-stats {
    grid-column: auto;
  }

  .project-dialog-shell {
    grid-template-columns: 1fr;
  }

  .project-dialog-media {
    min-height: 380px;
  }

  .project-dialog-media img {
    min-height: 330px;
  }
}

@media (max-width: 680px) {
  .projects-container,
  .projects-page .header-container {
    width: min(100% - 32px, 1320px);
  }

  .projects-page .projects-header,
  .projects-page .projects-header.scrolled {
    height: 70px;
  }

  .projects-page .header-logo {
    width: 105px;
  }

  .projects-hero {
    padding-top: 108px;
    padding-bottom: 30px;
  }

  .projects-hero-inner {
    min-height: calc(100svh - 138px);
  }

  .projects-availability {
    display: none;
  }

  .projects-hero-title {
    padding: 10vh 0 7vh;
    font-size: clamp(3.5rem, 18vw, 5.5rem);
    line-height: 0.89;
  }

  .hero-title-line:first-child {
    padding-left: 0;
  }

  .projects-hero-bottom {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .projects-scroll-cue {
    justify-self: start;
  }

  .projects-hero-index {
    display: none;
  }

  .projects-hero-x {
    width: 110vw;
  }

  .project-showcase {
    padding: 85px 0 100px;
  }

  .showcase-heading {
    display: block;
    margin-bottom: 20px;
  }

  .showcase-heading > p {
    margin-top: 17px;
  }

  .project-carousel {
    --card-width: min(72vw, 310px);
    --card-height: min(53vw, 225px);
    --ring-radius: min(67vw, 280px);
    height: 390px;
    perspective: 1100px;
  }

  .project-card-topline,
  .project-card-caption {
    right: 15px;
    left: 15px;
  }

  .project-card-topline {
    top: 13px;
  }

  .project-card-caption {
    bottom: 13px;
  }

  .card-open-button {
    width: 38px;
    height: 38px;
  }

  .carousel-orbit-line {
    width: 106%;
    height: 35%;
  }

  .carousel-drag-label {
    bottom: 0;
  }

  .project-info {
    padding-top: 26px;
  }

  .project-info h3 {
    font-size: clamp(2.4rem, 13vw, 3.5rem);
  }

  .projects-manifesto {
    padding: 95px 0;
  }

  .manifesto-grid {
    gap: 35px;
  }

  .manifesto-copy {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .manifesto-stats {
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .manifesto-stats > div {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--projects-line);
  }

  .manifesto-stats > div:not(:first-child) {
    padding-left: 0;
  }

  .projects-cta {
    padding: 95px 0 85px;
  }

  .projects-cta-inner {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .projects-cta-button {
    width: 122px;
    height: 122px;
  }

  .projects-footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .projects-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .project-dialog {
    width: calc(100vw - 22px);
    max-height: 94vh;
  }

  .project-dialog-shell {
    max-height: 92vh;
  }

  .project-dialog-media {
    min-height: 260px;
    padding: 15px;
  }

  .project-dialog-media img {
    min-height: 230px;
  }

  .project-dialog-copy {
    padding: 34px 22px 28px;
  }

  .project-dialog-copy .project-category {
    margin-top: 40px;
  }

  .project-dialog-close {
    top: 10px;
    right: 10px;
  }

  .projects-cursor-glow {
    display: none;
  }
}

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

  .reveal-item {
    opacity: 1;
    transform: none;
  }
}
