body {
  background-color: #0C0C0C;/* 0C0C0C */
  margin: 0;
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar Styles */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #0C0C0C;
}

/* Logo - Karun Kahlon */

.logo {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.text-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: #E62A00;
  color: white;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.button-link:hover,
.button-link:focus-visible {
  background: #E62A00;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(230, 42, 0, 0.35);
}

/* ===== MOBILE MENU (HAMBURGER + DRAWER) ===== */

.hamburger {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  cursor: pointer;
  padding: 10px 12px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #ffffff;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.2s ease,
              width 0.3s ease;
}

/* Morph bars into × when open */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(75vw, 300px);
  background: rgba(14, 14, 14, 0.96);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

/* Header row inside drawer */
.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
}

.menu-header-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8f8f8f;
}

.menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.mobile-link {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-left: 2px solid transparent;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.3s ease, transform 0.3s ease,
              color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.mobile-menu.is-open .mobile-link {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.is-open .mobile-link:nth-of-type(1) { transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-link:nth-of-type(2) { transition-delay: 0.17s; }

.mobile-link:hover,
.mobile-link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border-left-color: rgba(255, 255, 255, 0.15);
}

/* "Projects" link gets the red accent — matches nav pill */
.mobile-link.mobile-link--primary {
  color: #ffffff;
  border-left-color: #E62A00;
  background: rgba(230, 42, 0, 0.06);
}

.mobile-link.mobile-link--primary:hover {
  background: rgba(230, 42, 0, 0.1);
  border-left-color: #E62A00;
}

/* ===== landing SECTION ===== */

.landing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 0 8%;
  min-height: calc(100vh - 200px);
  max-width: 1200px;
  margin: 0 auto;
}

.landing-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.landing-greeting {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 10px;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.landing-greeting.visible {
  opacity: 1;
  transform: translateY(0);
}

.landing-h1 {
  font-size: 52px;
  margin: 0 0 40px;
  color: white;
  line-height: 1.15;
  font-weight: 700;
}

.landing-h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.landing-h1 .word.visible {
  opacity: 1;
  transform: translateY(0);
}

.landing-image {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.memoji-orbit {
  position: relative;
  width: 390px;
  height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: memoji-in 0.8s ease 0.2s forwards;
}

@keyframes memoji-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.orbit-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: orbit-spin 22s linear infinite;
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.orbit-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: rgba(255, 255, 255, 0.55);
}

.memoji {
  position: relative;
  width: 220px;
  height: 220px;
  object-fit: contain;
  display: block;
  z-index: 1;
}

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

.landing-btns,
.projects-cta {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  align-items: center;
}

.landing-LinkedIn-btn,
.landing-projects-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  min-width: 148px;
  box-sizing: border-box;
}

.landing-LinkedIn-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.landing-LinkedIn-btn:hover,
.landing-LinkedIn-btn:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.landing-projects-btn {
  background-color: #E62A00;
  color: white;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.landing-projects-btn:hover,
.landing-projects-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(230, 42, 0, 0.28);
}

/* ===== FEATURED PROJECTS PREVIEW ===== */

.featured-projects {
  padding: 80px 8%;
  background-color: #0C0C0C;
}

.featured-projects-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Section header row */
.fp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.fp-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E62A00;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fp-label::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: #E62A00;
}

.fp-all-link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s ease;
}

.fp-all-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Card grid — equal two columns */
.fp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

/* Base card */
.fp-card {
  border-radius: 20px;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  position: relative;
}

.fp-card--primary:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.12);
}

.fp-card-image {
  width: 100%;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: #1a1a1a;
  flex-shrink: 0;
}

.fp-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.fp-card--primary:hover .fp-card-image img {
  transform: scale(1.03);
}

/* Card body */
.fp-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.fp-card-body--centered {
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 32px 28px;
}

.fp-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fp-card-index {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #E62A00;
  background: rgba(230, 42, 0, 0.1);
  border: 1px solid rgba(230, 42, 0, 0.25);
  border-radius: 4px;
  padding: 3px 8px;
  line-height: 1.6;
  flex-shrink: 0;
}

.fp-card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f8f8f;
}

.fp-card-desc {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* Duration row */
.fp-card-duration {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}

.fp-card-duration svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.3);
}

/* Project page duration (Projects.html) */
.project-duration {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
}

.fp-card-cta {
  font-size: 13px;
  font-weight: 500;
  color: #E62A00;
  margin-top: auto;
  transition: gap 0.2s ease;
}

/* Coming soon card */
.fp-card--secondary {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.fp-coming-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin: 8px 0 4px;
}

.fp-coming-sub {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.15);
  margin: 0;
}

/* Responsive */
@media (max-width: 760px) {
  .fp-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== DESIGN PHILOSOPHY — STATEMENT WALL ===== */

.design-philosophy {
  padding: 120px 8%;
  background-color: #0C0C0C;
  color: white;
}

.dp-wall-header {
  max-width: 1100px;
  margin: 0 auto 72px;
}

.design-philosophy-title {
  font-size: 40px;
  margin: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.design-philosophy-title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dp-wall {
  max-width: 1100px;
  margin: 0 auto;
}

.dp-band {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: baseline;
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.dp-band:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dp-band.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dp-band-index {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E62A00;
  padding-top: 6px;
}

.dp-band-statement {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  letter-spacing: -0.01em;
}

@media (max-width: 860px) {
  .dp-band {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 36px 0;
  }
  .dp-band-statement {
    font-size: 20px;
  }
}


/* ===== ABOUT SECTION ===== */

.about {
  padding: 140px 8%;
  background-color: #0C0C0C;
  color: white;
  overflow: hidden;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
}

.about-title {
  font-size: 40px;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Carousel ── */
.about-carousel {
  position: relative;
  width: 100%;
  cursor: grab;
  user-select: none;
}

.about-carousel.is-dragging {
  cursor: grabbing;
}

.about-track {
  display: flex;
  gap: 20px;
  will-change: transform;
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-carousel.is-dragging .about-track {
  transition: none;
}

/* ── Cards ── */
.about-card {
  position: relative;
  flex: 0 0 calc(33.333% - 14px);
  aspect-ratio: 3 / 4;
  background: #151515;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease,
              box-shadow 0.35s ease, border-color 0.35s ease;
}

.about-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.14);
}

.about-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.about-card:hover .about-card-img {
  transform: scale(1.04);
}

.about-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0, 0, 0, 0.55) 65%,
    rgba(0, 0, 0, 0.92) 100%
  );
}

.about-card-overlay--arsenal {
  background: linear-gradient(
    to bottom,
    rgba(60, 0, 0, 0.1) 0%,
    rgba(15, 0, 0, 0.55) 55%,
    rgba(5, 0, 0, 0.96) 100%
  );
}

.arsenal-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.arsenal-stadium-svg {
  width: 100%;
  height: 100%;
}

.about-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
}

.about-card-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 8px;
}

.about-card-label-dash {
  display: block;
  width: 14px;
  height: 1px;
  background: #E62A00;
  flex-shrink: 0;
}

.about-card-text {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
}

.about-card:hover .about-card-text {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

/* ── Dots ── */
.about-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.about-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}

.about-dot.is-active {
  width: 24px;
  background: #E62A00;
  border-color: #E62A00;
}

@media (max-width: 900px) {
  .about-card { flex: 0 0 calc(75% - 10px); }
}

@media (max-width: 600px) {
  .about-card { flex: 0 0 100%; }
}


/* ===== PROJECTS PAGE ===== */

/* ===== PROJECTS PAGE ===== */

/* Page header */
.projects-header {
  padding: 80px 32px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.projects-header-inner {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 56px;
}

.projects-header-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E62A00;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
}

.projects-header-label::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: #E62A00;
  flex-shrink: 0;
}

.projects-header-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.projects-header-sub {
  font-size: 16px;
  color: #8f8f8f;
  margin: 0;
  font-weight: 400;
}

.project-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 120px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-preview {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  align-items: center;
  gap: 80px;
  padding: 72px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.project-preview.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-preview:nth-child(2).is-visible { transition-delay: 0.15s; }

.project-thumbnail {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background: #0C0C0C;
  aspect-ratio: 5 / 3;
  transform: translateY(0);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.5s ease, opacity 0.35s ease;
}

.project-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 520px;
}

/* Index + label row */
.project-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.project-index {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #E62A00;
  background: rgba(230, 42, 0, 0.1);
  border: 1px solid rgba(230, 42, 0, 0.25);
  border-radius: 4px;
  padding: 3px 8px;
  line-height: 1.6;
  flex-shrink: 0;
}

.project-title {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f8f8f;
  line-height: 1;
}

.project-description {
  margin: 0 0 20px;
  max-width: 38ch;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #ffffff;
}

/* Tags */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
}

.project-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px 12px;
}

.project-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #E62A00;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.01em;
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-button::after {
  content: '→';
  font-size: 0.9em;
  transition: transform 0.2s ease;
}

.project-preview:hover .project-thumbnail,
.project-preview:focus-within .project-thumbnail {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.project-preview:hover .project-thumbnail img,
.project-preview:focus-within .project-thumbnail img {
  transform: scale(1.04);
}

.project-button:hover,
.project-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(230, 42, 0, 0.28);
}

.project-button:hover::after {
  transform: translateX(3px);
}


/* ===== PROJECT DETAIL HEADER ===== */

.project-header {
  width: 100%;
  padding: 72px 32px 96px;
  box-sizing: border-box;
}

.project-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  padding: 8px 14px 8px 10px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  align-self: flex-start;
  margin-bottom: 56px;
  box-sizing: border-box;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.back-button::before {
  content: "←";
  color: inherit;
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.back-button::after {
  content: none;
}

.back-button:hover,
.back-button:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-3px);
}

.project-header .project-title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  color: #8f8f8f;
}

.project-header .project-description {
  margin: 0 0 20px;
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.project-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 18px;
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-bottom: 72px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.project-visit-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.project-visit-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.project-visit-btn:hover svg {
  transform: translate(2px, -2px);
}

.project-thumbnail-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: #0C0C0C;
}

.project-header .project-thumbnail {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: contain;
  object-position: center center;
  border-radius: 24px;
}

#sfd-carousel2 {
  margin-top: 120px;
  margin-bottom: 120px;
}

/* ===== PROJECT BODY ===== */

.project-body-layout {
  width: 100%;
  max-width: 1200px;
  margin: 72px auto 0;
  padding: 0 32px;
  box-sizing: border-box;
}


.project-body-content {
  width: 100%;
  min-width: 0;
  grid-column: 1;
}

.project-side-menu {
  position: sticky;
  top: 120px;
  grid-column: 2;
  justify-self: end;
  align-self: start;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 0;
  overflow: hidden;
}

.project-side-menu::before {
  content: 'On this page';
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8f8f8f;
  padding: 0 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
}

.project-content-section {
  width: 100%;
  min-width: 0;
}

.project-overview-grid {
  display: block;
}

.project-overview-details {
  width: 100%;
  max-width: 700px;
}

.overview-block {
  margin-bottom: 40px;
}

.overview-block:last-child {
  margin-bottom: 0;
}

.overview-heading {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  color: #E62A00;
  display: flex;
  align-items: center;
  gap: 10px;
}

.overview-heading::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: #E62A00;
  flex-shrink: 0;
}

.overview-text {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: #ffffff;
}

.project-body-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 64px;
  align-items: start;
  position: relative;
  width: 100%;
}

.project-side-link {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  width: 100%;
  padding: 8px 20px;
  box-sizing: border-box;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  display: block;
}

.project-side-link:hover,
.project-side-link:focus-visible {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.04);
  border-left-color: rgba(255, 255, 255, 0.15);
}

.project-side-link.is-active {
  color: #ffffff;
  border-left-color: #E62A00;
  background: rgba(230, 42, 0, 0.06);
}

.project-content-section + .project-content-section {
  margin-top: 120px;
}

.project-section-title {
  margin: 0 0 56px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  color: #8f8f8f;
  position: relative;
}

.project-section-title::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.12), transparent);
}

.project-section-number {
  color: #E62A00;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  background: rgba(230, 42, 0, 0.1);
  border: 1px solid rgba(230, 42, 0, 0.25);
  border-radius: 4px;
  padding: 3px 8px;
  line-height: 1.6;
}

.project-section-label {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

/* ===== PROBLEM SECTION ===== */

.problem-content {
  margin-top: 0;
}

.problem-intro-list {
  display: flex;
  flex-direction: column;
  gap: 120px;
  margin-top: 120px;
}

.problem-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 96px;
  align-items: start;
}

.problem-row:not(:has(.problem-row-visual)) {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.problem-row:not(:has(.problem-row-visual)) .problem-row-text,
.problem-row:not(:has(.problem-row-visual)) .problem-text {
  max-width: 100%;
}

.problem-row-text {
  width: 100%;
  text-align: left;
  justify-self: start;
}

.problem-subheading {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  color: #E62A00;
  display: flex;
  align-items: center;
  gap: 10px;
}

.problem-subheading::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: #E62A00;
  flex-shrink: 0;
}

.problem-text {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: #ffffff;
}

.problem-row-visual {
  display: flex;
  justify-content: flex-start;
}

.problem-image-placeholder {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: #d9d9d9;
}

.requirements-section {
  margin-top: 120px;
}

.problem-intro-list .requirements-section {
  margin-top: 0;
}

.requirements-title {
  margin: 0 0 32px;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: #ffffff;
}

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

.requirements-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.requirement-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.requirement-card:hover,
.requirement-card:focus-within {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.requirement-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #ffffff;
}

.requirement-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.requirement-text {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: #ffffff;
}

.requirement-text strong {
  font-weight: 500;
  color: #ffffff;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 660px;
  margin: 0 auto;
}

.step-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 64px;
}

.step-label {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  text-align: right;
}

/* ===== COLOUR PALETTE ===== */

.colour-palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.colour-swatch {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #151515;
}

.colour-swatch-block {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.colour-swatch-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
}

.colour-swatch-name {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.colour-swatch-hex {
  font-size: 12px;
  color: #8f8f8f;
  font-family: monospace;
}

@media (max-width: 600px) {
  .colour-palette {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== IMAGE CAROUSEL ===== */

.carousel {
  width: 100%;
  user-select: none;
}

.carousel-track-wrap {
  overflow: hidden;
  border-radius: 20px;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  box-sizing: border-box;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top left;
}

.carousel-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-placeholder-label {
  font-size: 14px;
  color: #444;
  font-weight: 400;
}

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

.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  transform: scale(1.08);
}

.carousel-btn:active {
  transform: scale(0.96);
}

.carousel-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  transform: none;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease, width 0.25s ease;
}

.carousel-dot.is-active {
  background: #ffffff;
  width: 28px;
  border-radius: 3px;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1000px) {
  .landing {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 32px;
    padding: 40px 6% 60px;
    min-height: unset;
  }

  .landing-text {
    align-items: center;
  }

  .landing-image {
    flex: none;
  }

  .landing-btns {
    justify-content: center;
  }

  .landing-greeting {
    text-align: center;
  }

  .landing-h1 {
    font-size: 36px;
    text-align: center;
  }

  .project-section {
    padding: 56px 24px 96px;
  }

  .projects-header {
    padding: 56px 24px 0;
  }

  .project-preview {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 0;
  }

  .project-title {
    max-width: none;
  }

  .project-button {
    margin-top: 0;
  }

  .design-philosophy-content {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .design-philosophy-image {
    flex: none;
    max-width: 250px;
  }
  .design-philosophy-title,
  .about-title {
    text-align: center;
  }

  .project-header {
    padding: 56px 24px 80px;
  }

  .back-button {
    margin-bottom: 56px;
  }

  .project-header .project-description {
    margin-bottom: 64px;
  }
  
  .project-body-layout {
    margin-top: 64px;
  }

  .project-body-shell {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 40px;
  }

  .project-side-menu {
    display: none
  }
  .project-section-title {
    gap: 14px;
  }

  .problem-content {
    margin-top: 120px;
  }

.problem-intro-list {
  gap: 72px;
}

.problem-row {
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 64px;
}

.problem-image-placeholder {
  max-width: 150px;
}

  .requirements-section {
    margin-top: 120px;
  }
}

/* ===== PROJECT PAGE OPTIMIZATION ===== */

@media (max-width: 800px) {
  .project-side-menu {
    display: none;
  }

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

  .problem-intro-list {
    gap: 56px;
  }

  .problem-row {
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: start;
    justify-items: center;
  }

  .problem-row-visual {
    order: -1;
    justify-content: center;
  }

.problem-row-text {
  width: 100%;
  justify-self: start;
  text-align: left;
}

  .problem-image-placeholder {
    width: 140px;
    max-width: 140px;
  }

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

.problem-subheading,
.problem-text {
  text-align: left;
}

/* ===== MOBILE OPTIMIZATION ===== */

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .project-section {
    padding: 40px 20px 80px;
  }

  .projects-header {
    padding: 40px 20px 0;
  }

  .project-thumbnail {
    aspect-ratio: 5 / 3;
    border-radius: 16px;
  }

  .project-title {
    margin-bottom: 12px;
  }

  .project-description {
    margin-top: 16px;
  }

  .project-button {
    width: 100%;
    max-width: none;
    align-self: stretch;
  }

  .landing-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 280px;
  }

  .memoji-orbit { width: 260px; height: 260px; }
  .memoji { width: 170px; height: 170px; }
  .landing-greeting { font-size: 16px; text-align: center; }
  .landing-h1 { font-size: 32px; margin-bottom: 28px; }

  .landing-LinkedIn-btn,
  .landing-projects-btn {
    width: 100%;
    min-width: unset;
  }

  .projects-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .project-header {
    padding: 40px 20px 64px;
  }

  .back-button {
    min-width: 0;
    padding: 9px 15px;
    margin-bottom: 40px;
  }

  .project-header .project-description {
    margin: 0 0 56px;
  }

  .project-thumbnail-container,
  .project-header .project-thumbnail {
    border-radius: 16px;
  }
  
  .project-body-layout {
    margin-top: 48px;
    padding: 0 20px;
  }

  .project-overview-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .project-side-menu {
    display: none;
  }

  .overview-block {
    margin-bottom: 32px;
  }

  .project-content-section + .project-content-section {
    margin-top: 88px;
  }

  .project-section-title {
    gap: 12px;
  }

  .problem-content {
    margin-top: 120px;
  }

  .problem-subheading {
    margin-bottom: 16px;
  }

.problem-intro-list {
  gap: 48px;
}

.problem-row {
  gap: 64px;
  justify-items: center;
}

.problem-row-visual {
  order: -1;
  justify-content: center;
}

.problem-image-placeholder {
  width: 120px;
  max-width: 120px;
  border-radius: 12px;
}

  .requirements-section {
    margin-top: 120px;
  }

  .requirements-title {
    margin-bottom: 24px;
    font-size: 18px;
  }

  .requirement-card {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    min-height: 84px;
    padding: 18px 16px;
    border-radius: 16px;
  }

  .requirement-icon {
    width: 28px;
    height: 28px;
    font-size: 20px;
  }
}

.sfd-project-page .project-body-layout {
  padding: 0 24px;
}

/* ===== PROJECT IMAGE COMPONENTS ===== */

/* Artefacts grid — 3 col, used for research affinity diagrams */
.project-artefacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.artefact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.artefact-card:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

.artefact-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.artefact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  padding: 0 14px 14px;
}

/* Full-width image with caption */
.project-image-full {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0;
}

.project-img-full {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.07);
  display: block;
}

.project-img-caption {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-style: italic;
  text-align: center;
}

/* Insight note — used for missing artefact callout */
.project-insight-note {
  background: rgba(230,42,0,0.06);
  border-left: 2px solid #E62A00;
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  margin: 24px 0 8px;
}

.project-insight-note p {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  margin: 0;
  font-style: italic;
}

/* Before/After comparison */
.project-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}

.comparison-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comparison-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 8px;
}

.comparison-label::before {
  content: '';
  display: block;
  width: 12px;
  height: 1px;
  background: rgba(255,255,255,0.3);
}

.comparison-label--new {
  color: #E62A00;
}

.comparison-label--new::before {
  background: #E62A00;
}

.comparison-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.07);
  display: block;
  transition: border-color 0.25s ease;
}

.comparison-img:hover {
  border-color: rgba(255,255,255,0.16);
}

/* Responsive */
@media (max-width: 860px) {
  .project-artefacts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-comparison {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .project-artefacts-grid {
    grid-template-columns: 1fr;
  }
}

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

.footer {
  padding: 40px 0;
  background-color: #0C0C0C;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: center;   /* center horizontally */
  align-items: center;       /* center vertically */
  gap: 16px;                 /* reduced gap between logo & LinkedIn */
}

.footer .logo {
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.linkedin-link svg {
  width: 15px;               /* reduced icon size */
  height: 15px;
}


/* ===== SFD PROJECT PAGE OVERRIDES ===== */
.sfd-project-page .project-thumbnail-container {
  max-width: 1280px;
}
.sfd-project-page .project-body-layout {
  width: 100%;
  max-width: 1280px;
  margin: 72px auto 0;
  padding: 0 0px 0 32px;
  box-sizing: border-box;
}

.sfd-project-page .project-body-shell {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between;
  gap: 120px;
  width: 100%;
}

.sfd-project-page .project-body-content {
  flex: 1 1 0;
  max-width: none;
  width: 100%;
  min-width: 0;
}

.sfd-project-page .project-side-menu {
  flex: 0 0 220px;
  width: 220px;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  position: sticky !important;
  top: 120px !important;
  align-self: flex-start !important;
}

.sfd-project-page .project-content-section {
  min-width: 0;
}

@media (max-width: 900px) {
  .sfd-project-page .project-body-shell {
    display: flex !important;
    flex-direction: column;
    gap: 32px;
  }

  .sfd-project-page .project-body-content {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .sfd-project-page .project-side-menu {
    display: none;
  }
}

@media (max-width: 600px) {
  .sfd-project-page .project-body-layout {
    margin-top: 48px;
    padding: 0 48px;
  }
}

.sfd-project-page .project-body-layout {
  padding: 0 24px;
}

.problem-subheading,
.problem-text {
  text-align: left;
}

/* ===== SFD SCROLL OFFSET FIX ===== */
.sfd-project-page .project-content-section {
  scroll-margin-top: 120px;
}
/* ===== UX PROCESS DIAGRAM ===== */

.ux-process-diagram {
  margin: 48px 0;
  overflow-x: auto;
}

.upd-stages {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: 600px;
}

.upd-arrow {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.15);
  padding: 0 4px;
  margin-top: 18px;
  flex-shrink: 0;
  align-self: flex-start;
}

.upd-stage {
  flex: 1;
  min-width: 0;
}

.upd-stage-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px 10px 0 0;
  border-bottom: none;
}

.upd-stage--active .upd-stage-header {
  background: rgba(230, 42, 0, 0.07);
  border-color: rgba(230, 42, 0, 0.25);
  border-bottom-color: transparent;
}

.upd-stage-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 2px 7px;
  flex-shrink: 0;
}

.upd-stage--active .upd-stage-num {
  color: #E62A00;
  background: rgba(230, 42, 0, 0.1);
  border-color: rgba(230, 42, 0, 0.3);
}

.upd-stage-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.01em;
}

.upd-methods {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 10px 10px;
}

.upd-stage--active .upd-methods {
  border-color: rgba(230, 42, 0, 0.2);
}

.upd-methods li {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  padding: 9px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.4;
}

.upd-stage--active .upd-methods li {
  border-bottom-color: rgba(230, 42, 0, 0.08);
}

.upd-methods li:last-child {
  border-bottom: none;
}

@media (max-width: 700px) {
  .upd-stages {
    flex-direction: column;
    gap: 0;
    min-width: 0;
  }

  .upd-arrow {
    transform: rotate(90deg);
    margin: 4px auto;
    padding: 0;
    display: block;
    text-align: center;
  }

  .upd-stage-header {
    border-radius: 10px 10px 0 0;
    border-bottom: none;
  }

  .upd-methods {
    border-radius: 0 0 10px 10px;
  }
}

/* ===== UX PROCESS TIMELINE ===== */

.ux-timeline {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
}

.ux-timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 24px;
  align-items: start;
}

.ux-timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.ux-timeline-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(230, 42, 0, 0.1);
  border: 1px solid rgba(230, 42, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #E62A00;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.ux-timeline-line {
  width: 1px;
  flex: 1;
  min-height: 28px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.ux-timeline-content {
  padding-bottom: 32px;
  padding-top: 6px;
}

.ux-timeline-item--last .ux-timeline-content {
  padding-bottom: 0;
}

.ux-timeline-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.ux-timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ux-tag {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 5px 14px;
  letter-spacing: 0.02em;
}
