/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@800&family=Lexend:wght@400;500&display=swap');

/* =========================
   CSS VARIABLES
========================= */
:root {
  /* Colors */
  --berry:       #A3154A;
  --midnight:    #152B59;
  --cobalt:      #223773;
  --blush:       #F2BDD0;
  --lilac:       #C9CFF2;
  --plum-mist:   #8B4F6E;
  --porcelain:   #FAF7F9;
  --slate:       #8C90A0;
  --white:       #FFFFFF;
 
  /* Typography
  --font-display:  'Cormorant Garamond', serif;
  --font-heading:  'Inter', sans-serif;
  --font-body:     'Lexend', sans-serif;
  --font-accent:   'Montserrat', sans-serif; */
 
  /* Layout */
  --nav-height:  90px;
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
   *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
   
  html {
    scroll-behavior: smooth;
  }
   
  body {
    background-color: var(--porcelain);
    color: var(--midnight);
    font-family: 'Inter', sans-serif;
    /* Push content below the sticky nav */
    padding-top: var(--nav-height);
  }
  


   
  /* ============================================================
     NAV
     ============================================================ */
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
   
    display: flex;
    align-items: center;
    justify-content: space-between;
   
    height: var(--nav-height);
    padding: 0 80px;
   
    background-color: var(--berry);
   
    /* Subtle shadow so content slides under cleanly */
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
  }
   
  /* --- Logo --- */
  .nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
  }
   
  .nav-logo img {
    height: 50px;
    width: auto;
    display: block;
  }
   
  /* Fallback text style if image hasn't loaded yet */
  .nav-logo:not(:has(img)) {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--white);
    letter-spacing: 0.02em;
  }
   
  /* --- Nav Links List --- */
  .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 40px;
  }
   
  /* --- Nav Link Items --- */
  .nav-links a {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: var(--porcelain);
    text-decoration: none;
    letter-spacing: 0.01em;
    position: relative;
   
    /* Smooth hover transition */
    transition: color 0.2s ease, opacity 0.2s ease;
  }
   
  /* Hover state — slightly transparent white */
  .nav-links a:hover {
    opacity: 0.65;
  }
   
  /* Active / current page — bold highlight */
  .nav-links a[aria-current="page"],
  .nav-links a.active {
    font-weight: 700;
    /* Underline indicator for active page */
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
  }

  .hamburger {
    display: none;
  }

/* =========================
   RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
 
html {
  scroll-behavior: smooth;
}
 
body {
  background-color: var(--porcelain);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  color: var(--midnight);
  line-height: 1.7;
}
 
img {
  display: block;
  max-width: 100%;
}
 
a {
  text-decoration: none;
}
 
ul {
  list-style: none;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #152B59; /* midnight fallback */
}

#p5-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}

/* ============================================================
   HERO — HOMEPAGE
   ============================================================ */
   .hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: var(--midnight);
  }
  
  #p5-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  
  .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }
  
  .hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(48px, 8vw, 96px);
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.05;
  }
  
  .hero-content p {
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: clamp(20px, 3vw, 32px);
    color: var(--blush);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }



/* =========================
   ABOUT IMAGE
========================= */

.about-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  display: block;
}


/* ============================================================
   FEATURED WORK — CAROUSEL
   ============================================================ */
 
   .featured-work {
    padding: 50px 40px 60px;
    text-align: center;
  }
   
  .featured-work h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 4vw, 36px);
    color: var(--midnight);
    margin-bottom: 48px;
    letter-spacing: -0.01em;
  }
   
  /* --- Carousel Wrapper --- */
  .carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }
   
  /* --- Arrow Buttons — hidden always --- */
  .carousel-btn {
    display: none;
  }
   
  /* --- Track --- */
  .carousel {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 16px 0 24px;
    flex: 1;
  }
   
  .carousel::-webkit-scrollbar {
    display: none;
  }
   
  /* --- Project Card — 3 equal columns --- */
  .project-card {
    flex: 0 0 calc(33.333% - 19px);
    scroll-snap-align: center;
    background: var(--porcelain);
    border-radius: 20px;
    overflow: hidden;
    /* border: 1.5px solid rgba(21, 43, 89, 0.1); */
    /* box-shadow: 0 4px 24px rgba(21, 43, 89, 0.07); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
  }
   
  .project-card:hover {
    transform: translateY(-8px);
    box-shadow: none;
  }
   
  /* --- Card Image --- */
  .card-image {
    margin: 0;
    width: 100%;
    height: 310px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--porcelain);
    box-shadow: 0 4px 24px rgba(21, 43, 89, 0.07);
    flex-shrink: 0;
  }
   
  .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
  }
   
  .project-card:hover .card-image img {
    transform: scale(1.03);
  }
   
  /* --- Card Text --- */
  .project-card h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--midnight);
    padding: 28px 24px 10px;
    line-height: 1.25;
    text-align: center;
  }
   
  .project-card p {
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: var(--cobalt);
    padding: 0 24px 20px;
    line-height: 1.6;
    flex: 1;
    text-align: center;
  }
   
  /* --- Learn More Button --- */
  .project-card .btn-primary {
    display: inline-block;
    margin: 0 24px 28px;
    padding: 12px 32px;
    background: var(--berry);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 20px;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 999px;
    align-self: center;
    transition: background 0.2s ease, transform 0.2s ease;
  }
   
  .project-card .btn-primary:hover {
    background: var(--midnight);
    transform: translateY(-1px);
  }
   
  /* --- Dot Indicators — desktop hidden, mobile only --- */
  .carousel-dots {
    display: none;
  }

/* ============================================================
   ABOUT PREVIEW
   ============================================================ */
 
   .about-preview {
    background-color: var(--porcelain);
    padding: 40px 40px;
  }
   
  .about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    align-items: center;
    gap: 64px;
  }
   
  /* --- Headshot --- */
  .about-image {
    display: flex;
    justify-content: center;
    align-items: center;
  }
   
  .about-image img {
    width: 100%;
    max-width: 400px;
    object-fit: cover;
    object-position: center top;
    display: block;
  }
   
  /* --- Text --- */
  .about-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 48px;
    color: var(--midnight);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
  }
   
  .about-text p {
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: var(--cobalt);
    line-height: 1.7;
  }


/* ============================================================
   HEADSHOT — ANIMATED BLOB BORDER
   ============================================================ */
   .headshot-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .profile-wrapper {
    width: clamp(180px, 60vw, 340px);
    height: clamp(180px, 60vw, 340px);
    padding: 8px;
    background: linear-gradient(135deg, var(--blush));
    background-size: 300% 300%;
    position: relative;
    animation: blobShape 6s ease-in-out infinite, gradientShift 8s ease infinite;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    overflow: hidden;
  }
  
  .profile-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
    position: relative;
    z-index: 1;
  }
  
  @keyframes blobShape {
    0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25%  { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50%  { border-radius: 50% 60% 30% 60% / 30% 40% 70% 50%; }
    75%  { border-radius: 40% 70% 60% 30% / 70% 30% 50% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  }
  
  @keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

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

    #graphic-design, #motion-graphics, #web-design {
      scroll-margin-top: 80px;
   } 
 
   body.projects-page {
    background-color: var(--porcelain);
  }
   
  /* --- Page Header --- */
  .page-header {
    padding: 60px 90px 40px;
    text-align: left;
  }
   
  .page-header h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 36px;
    color: var(--midnight);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 12px;
  }
   
  .page-header p {
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: var(--cobalt);
    line-height: 1.2;
  }
   
  /* --- Section Filter Buttons --- */
  .projects-nav {
    display: flex;
    justify-content: flex-start;
    gap: 26px;
    padding: 0 90px 48px;
    flex-wrap: wrap;
  }
   
  .project-filter {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 18px;
    letter-spacing: 0.01em;
    text-decoration: none;
    padding: 10px 28px;
    border-radius: 999px;
    border: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
   
  .project-filter:hover {
    opacity: 0.8;
    transform: translateY(-2px);
  }
   
  /* Individual button colors */
  .project-filter[href="#graphic-design"] {
    background-color: var(--blush);
    color: var(--midnight);
  }
   
  .project-filter[href="#web-design"] {
    background-color: var(--lilac);
    color: var(--midnight);
  }
   
  .project-filter[href="#motion-graphics"] {
    background-color: var(--plum-mist);
    color: var(--white);
  }
   
  /* --- Projects Container --- */
  .projects-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px 40px;
  }
   
  /* --- Section Headings --- */
  .project-section {
    margin-bottom: 72px;
  }
   
  .project-section h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 32px;
    color: var(--berry);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    padding-bottom: 12px;
    /* border-bottom: 2px solid var(--blush); */
  }
   
  /* --- Projects Grid --- */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
  }
   
  /* --- Project Card --- */
  .project-section .project-card {
    flex: unset;
    scroll-snap-align: unset;
    background: var(--porcelain);
    border-radius: 20px;
    overflow: hidden;
    /* border: 1.5px solid rgba(21, 43, 89, 0.1); */
    /* box-shadow: 0 4px 24px rgba(21, 43, 89, 0.07); */
    transition: transform 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
  }
   
  .project-section .project-card:hover {
    transform: translateY(-8px);
    box-shadow: none;
  }
   
  /* --- Card Image --- */
  .project-section .card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    background: var(--porcelain);
    flex-shrink: 0;
  }
   
  .project-section .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
  }
   
  .project-section .card-image.contain img {
    object-fit: contain;
    padding: 16px;
  }
   
  .project-section .project-card:hover .card-image img {
    transform: scale(1.03);
  }
   
  /* --- Card Content --- */
  .card-content {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
   
  .project-section .project-card h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--midnight);
    line-height: 1.25;
    text-align: left;
    padding: 0;
  }
   
  .project-section .project-card p {
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: var(--cobalt);
    line-height: 1.6;
    text-align: left;
    padding: 0;
    flex: unset;
  }
   
  /* --- Motion Graphics --- */
  .media-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
    flex-shrink: 0;
  }
   
  .video-thumb,
  .video-embed {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
  }
   
  .video-thumb {
    cursor: pointer;
  }
   
  .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
   
  .video-embed {
    display: none;
  }
   
  .video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
  }
   
  .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--white);
    background: rgba(0, 0, 0, 0.55);
    padding: 0.5rem 1.30rem;
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
    pointer-events: none;
  }
   
  .video-thumb:hover .play-icon {
    background: var(--berry);
    transform: translate(-50%, -50%) scale(1.1);
  }

/* ============================================================
   CASE STUDIES PAGE
   ============================================================ */
 
   body.case-studies-page {
    background-color: var(--porcelain);
  }
   
  /* --- Case Studies List --- */
  .case-studies-list {
    list-style: none;
    padding: 0 40px 80px;
    margin: 0 auto;
    max-width: 1600px;
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
   
  /* --- Case Card — two column layout --- */
  .case-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center; 
    gap: 48px;
    background: var(--porcelain);
    border-radius: 20px;
    overflow: visible;
    transition: transform 0.3s ease;
  }
   
  .case-card:hover {
    transform: translateY(-6px);
  }
   
  /* --- Thumbnail --- */
  .case-thumbnail {
    margin: 0;
    width: 100%;
    height: 100%;
    min-height: 320px;
    overflow: hidden;
    border-radius: 20px;
    flex-shrink: 0;
  }
   
  .case-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    transition: transform 0.4s ease;
  }
   
  .case-card:hover .case-thumbnail img {
    transform: scale(1.03);
  }
   
  /* --- Case Info (right column) --- */
  .case-info {
    padding: 0 40px 48px 0; /* remove top padding */
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
   
  .case-info h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 32px;
    color: var(--berry);
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
   
  .case-info p {
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: var(--cobalt);
    line-height: 1.7;
  }
   
  /* --- Meta Pills --- */
  .card-meta {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }
   
  .meta-pill {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: var(--midnight);
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
  }

    /* Add separator between role and date */
  .meta-pill + .meta-pill::before {
    content: " | ";
    padding: 0 6px;
    color: var(--slate);
  }
   
  /* --- View Case Study Button --- */
  .btn-case-study {
    display: inline-block;
    align-self: flex-start;
    margin-top: 8px;
    padding: 12px 32px;
    background: var(--berry);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s ease;
  }
   
  .btn-case-study:hover {
    background: var(--midnight);
    transform: translateY(-2px);
  }

/* ============================================================
   ABOUT PAGE
   ============================================================ */  
  .about-hero {
    padding: 60px 40px;
  }
  
  .about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    align-items: center;
  }
  
  /* IMAGE */
  .about-image img {
    max-width: 380px;
    border-radius: 12px;
  }
  
  /* TEXT */
  .about-content h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: var(--midnight);
    /* margin-bottom: 5px; */
  }
  
  .about-role {
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: var(--berry);
    margin-bottom: 20px;
  }
  
  .about-content p {
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: var(--cobalt);
    margin-bottom: 36px;
  }
  
  /* BUTTONS */
  .about-buttons {
    display: flex;
    gap: 20px;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 12px 28px;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: white;
    transition: transform 0.2s ease;
  }
  
  .btn-primary {
    background: var(--berry);
  }
  
  .btn-secondary {
    background: var(--cobalt);
  }
  
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: translateY(-2px);
  }

/* DESIGN PHILOSOPHY */
.design-philosophy {
  max-width: 800px;
  margin: 60px auto;
  text-align: center;
}

.design-philosophy h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--berry);
  margin-bottom: 16px;
}

.design-philosophy p {
  font-family: 'Lexend', sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: var(--cobalt);
}

/* SKILLS GRID */
.software-skills,
.technical-skills {
  padding: 40px 40px;
  text-align: center;
}

.software-skills h2,
.technical-skills h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--berry);
  margin-bottom: 32px;
}

/* GRID */
.skills-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ITEM */
.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s ease;
}

.skill-item img {
  width: 180px;
  height: 180px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.skill-item p {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--cobalt);
}

/* Hover state */
.skill-item:hover {
  transform: translateY(-6px);
}

.skill-item:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 12px rgba(21, 43, 89, 0.2));
}

/* ============================================================
   CTA SECTION
   ============================================================ */
   .cta {
    width: 100%;
    /* background-color: var(--white); */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 40px 40px;
    gap: 16px;
  }
   
  /* Arrow above the CTA — sits inside .back-to-top when placed above .cta,
     but we also handle it here if it's a standalone element in .cta */
  .back-to-top {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    padding: 40px 0 0;
  }
   
  .back-to-top img {
    width: 48px;
    height: auto;
    transition: transform 0.25s ease;
  }
   
  .back-to-top:hover img {
    transform: translateY(-4px);
  }
   
  /* CTA Heading */
  .cta h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 4vw, 36px); /* scales fluidly, anchored at 36pt */
    color: var(--midnight);
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
   
  /* CTA Subline */
  .cta p {
    font-family: 'Lexend', sans-serif;
    font-weight: 500;
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--berry);
    line-height: 1.4;
  }
   
  /* ============================================================
     FOOTER
     ============================================================ */
  .site-footer {
    /* background-color: var(--white); */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 40px 48px;
  }
   
  .footer-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
  }
   
  /* Icon links */
  .footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
   
  .footer-links a:hover {
    opacity: 0.7;
    transform: translateY(-2px);
  }
   
  /* Icon images */
  .footer-links .icon-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
  }
   
  /* Plain text links (used on fireflies.html / crimsonmotorsports.html) */
  .footer-links a:not(:has(.icon-img)) {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: var(--midnight);
    letter-spacing: 0.01em;
  }
   
  .footer-links a:not(:has(.icon-img)):hover {
    color: var(--berry);
    opacity: 1;
  }

  /* ============================================================
     RESPONSIVE
     ============================================================ */
     @media (max-width: 900px) {
      :root { --section-pad: 60px 40px; }
    
      .back-bar { padding: 24px 40px 0; }
      .meta-row { grid-template-columns: repeat(2, 1fr); padding: 40px; }
      .objectives-row { grid-template-columns: 1fr; padding: 40px; }
      .process-row { grid-template-columns: 1fr; padding: 0 40px 48px; }
      .process-row.reverse { direction: ltr; }
      .logo-row { grid-template-columns: 1fr; padding: 0 40px 48px; }
      .img-grid-3 { grid-template-columns: repeat(2, 1fr); padding: 0 40px 40px; }
      .img-grid-7 { grid-template-columns: repeat(4, 1fr); padding: 0 40px 40px; }
      .img-grid-2 { grid-template-columns: 1fr; padding: 0 40px 40px; }
      .outcome-row { grid-template-columns: 1fr; padding: 40px; }
      .branding-carousel { padding: 0 40px 48px; }
      .media-label { padding: 48px 40px 20px; }
      .media-slider { padding: 0 40px 16px; }
      .media-thumbs { padding: 16px 40px 48px; }
      .project-nav { padding: 32px 40px 48px; }
      .label-row { padding: 40px 40px 20px; }
    }
    
    @media (max-width: 600px) {
      :root { --section-pad: 48px 24px; }
    
      .back-bar { padding: 20px 24px 0; }
      .hero { height: 300px; }
      .meta-row { grid-template-columns: repeat(2, 1fr); padding: 32px 24px; gap: 20px; }
      .meta-block dt { font-size: 18px; }
      .meta-block dd { font-size: 16px; }
      .img-grid-3 { grid-template-columns: 1fr; padding: 0 24px 32px; }
      .img-grid-7 { grid-template-columns: repeat(3, 1fr); padding: 0 24px 32px; }
      .process-row { padding: 0 24px 40px; }
      .label-row { padding: 32px 24px 16px; }
      .branding-carousel { padding: 0 24px 40px; }
      .media-label { padding: 40px 24px 16px; }
      .media-slider { padding: 0 24px 12px; }
      .media-thumbs { padding: 12px 24px 40px; }
      .project-nav { padding: 24px 24px 40px; }
      .overview-row { padding: 48px 24px; }
      .objectives-row { padding: 32px 24px; }
      .process-intro { padding: 48px 24px 32px; }
    }

