/* NAVIGATION MENU */

/* Hamburger button — base (desktop: hidden) */
.nav-toggle {
  position: absolute;         
  top: 50%;               
  right: 0.75rem; 
  transform: translateY(-50%);          

  display: none;            

  /* the 3-bar styling */
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;

  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
}

/* Close X – position it where the hamburger lives */
.nav-close {
  position: absolute;
  top: 3%;        
  right: 0.75rem;  
  transform: translateY(-50%);     

  width: 2.5rem;
  height: 2.5rem;

  display: flex;
  align-items: center;
  justify-content: center;

  background: none;
  border: none;
  color: #000000;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: #000000;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Animate hamburger into an X */
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle-bar + .nav-toggle-bar {
  margin-top: 0.25rem;
}


/* LANDING SECTION */

.landing-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "label"
    "title"
    "image";
  row-gap: 0;
}

.landing-section h2 {
  grid-area: label;
}

.landing-section h1 {
  grid-area: title;
  margin-top: 0;
  margin-bottom: 2rem;
}

/* PROJECT SECTION */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  justify-content: center;
}

.project-item-info {
  display: flex;
  flex-direction: column;
}

/* FOOTER SECTION */

.footer-group {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.footer-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
}

.footer-back-top-btn {
  margin-left: auto;
}

/* ABOUT SECTION */

.about-title {
  width: 100%;
  padding: 0rem 4rem 4rem;
  margin: 0;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
}

.about-card {
  padding: 1.25rem 1.25rem;
  margin-bottom: 2rem;
}

.about-card p {
  margin: 0;
}

/* columns inside the grid */
.about-left,
.about-right {
  display: flex;
  flex-direction: column;
  gap: 0rem;
}

/* push the left image to the bottom of its column */
.about-photo-left {
  width: 100%;
  height: auto;
  display: block;
  margin-top: auto;
  object-fit: cover;
}

/* right image fills remaining column height */
.about-photo-right {
  width: 100%;
  height: 0;
  flex: 1;
  display: block;
  object-fit: cover;
  min-height: 12rem;
}

/* experience cards (right column) */

.experience-list {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.experience-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 1.25rem;
  gap: 2rem;
}

.exp-role {
  margin: 0;
}

.exp-company {
  margin-bottom: 1rem;
}

/* CASE STUDY OVERVIEW (shared across project pages) */

.cs-overview {
  padding: 6rem 0 4rem;
}

h1.cs-title{
  margin-bottom: 1rem;
  margin-top: 0rem;
}

h2.cs-year {
  margin: 0rem;
}

.cs-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 28rem) minmax(0, 1fr);
  gap: 3rem;
  align-items: stretch;
}

/* LEFT INFO CARD */

.cs-info-card {
  flex: 1;
  height: 100%;
}

/* COMPETITION SECTION */

/* Tighter spacing between competition header and images */
.competition-section .section-title {
  margin-bottom: 0.75rem;   
}

.competition-image {
  width: 100%;
  height: 100%;        /* adjust this value to taste */
  display: block;
  object-fit: cover;    /* crops so both look same height */
}


.caption {
  align-self: start;
  background: #f6f6f6;
  border-radius: 0.75rem;
  border: 1px solid #a7a7a7;
  padding: 0.5rem 1.25rem;
  box-sizing: border-box;
}

/* Let UX map captions hug their text */
.user-experience-map .caption {
  min-height: 0;
  display: block;
}

/* RESEARCH SECTION */


.research-row {
  display: grid;
  grid-template-columns: minmax(0, 80rem) 28rem;
  gap: 2rem;
  align-items: start;
}

.research-chart img {
  display: block;
  width: 100%;
  height: auto;
}

.research-caption-card {
  padding: 1.5rem;
}

.research-caption-card .card-title {
  font-size: 1.75rem;
  margin: 0;
  padding-bottom: 0.5rem;
}

.research-caption-card p:not(.card-title) {
  margin: 0;
}

.bylte-design-system img {
  display: block;
  max-width: 100%;
  height: auto;
}

.metric-image {
  display: block;
  width: 100%;
  height: auto;
}

.competition-section {
  margin-top: 8rem;
  margin-bottom: 16rem;
}

.competition-header {
  display: flex;
  flex-direction: column;
  
}

.competition-images {
  display: grid;
  grid-template-columns: 26rem 1fr;
  gap: 2rem;
  align-items: start;
}

.competition-image {
  border-radius: 0.75rem;
  border: 1px solid #535353;
  display: block;
}

.competition-captions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--caption-gap, 1.5rem);
  margin: 2.5rem 0 2rem;

  max-width: 82rem;
  margin-left: 0;
  margin-right: 0;

  align-items: start;
}

.competition-captions .caption {
  padding: 1.5rem;
}

.competition-captions .card-title {
  font-size: 1.75rem;
  margin: 0;
  padding-bottom: 0.5rem;
}

.competition-captions .caption p:not(.card-title) {
  margin: 0;
}

.research-section {
  margin-top: 8rem;
}

.guiding-question {
  text-align: center;
  margin-top: 30rem;
  margin-bottom: 30rem;
}

.process-step {
  margin-bottom: 12rem;
}

.bylte-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.bylte-principles-grid .caption {
  padding: 1.5rem;
}

.bylte-principles-grid .card-title {
  font-size: 1.75rem;
  margin: 0;
  padding-bottom: 0.5rem;
}

.bylte-principles-grid .caption p:not(.card-title) {
  margin: 0;
}

.bylte-wallet-grid {
  display: flex;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.bylte-wallet-frame {
  flex: none;
  background: #f6f6f6;
  border: 1px solid #a7a7a7;
  border-radius: 0.75rem;
  padding: 2rem;
  display: flex;
  align-items: flex-end;
}

.bylte-wallet-mockups {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
}

.bylte-wallet-grid .bylte-wallet-mockups img {
  width: 25rem;
  height: auto;
  display: block;
}

.bylte-wallet-grid .caption {
  padding: 1.5rem;
}

.bylte-wallet-grid .card-title {
  font-size: 1.75rem;
  margin: 0;
  padding-bottom: 0.5rem;
}

.bylte-wallet-grid .caption p:not(.card-title) {
  margin: 0;
}

.bylte-ab-tests {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.bylte-final {
  margin-top: 8rem;
}

.bylte-finished-product {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  margin: 3rem auto 0;
}

.reflection-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}


.bylte-ab-tests img,
.bylte-finished-product img,
.research-chart img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid #a7a7a7;
  border-radius: 0.75rem;
}

/* MOSAIC CASE STUDY */

.mosaic {
  padding: 6rem 0 4rem;
}

.mosaic-title-block {
  margin-bottom: 1.25rem;
}

.mosaic-year {
  margin: 0;
}

.mosaic-title {
  margin: 0;
}

/* Row 2 layout */
.overview-grid {
  display: flex;
  align-items: stretch;
  gap: 3rem;
}

.mosaic-overview {
  padding: 6rem 0 4rem;
}

.mosaic-overview-left {
  width: 22rem;
  flex-shrink: 0;
  min-width: 0;
}

.overview-right {
  flex: 1;
  min-width: 0;
  position: relative;
  border-radius: 0.75rem;
  border: 1px solid #a7a7a7;
  overflow: hidden;
  background: #f6f6f6;
}

.mosaic-overview .overview-grid {
  margin-bottom: 2rem;
}

.overview-right iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 125%;
  height: 125%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}


/* Left card (same look as your other cards) */
.mosaic-info-card {
  background: #f6f6f6;
  border: 1px solid #a7a7a7;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-sizing: border-box;
}

.user-interviews.mosaic .interview-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem;

  align-items: stretch;
}
  
.user-interviews.mosaic .insight-card {
  display: flex;
  flex-direction: column;
}

.user-interviews.mosaic .insight-card img {
  width: 100%;
  height: auto;
  display: block;
}

.user-personas.mosaic .section-title {
  max-width: 82rem;
  margin-bottom: 2rem;
}

.user-personas.mosaic .persona-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.user-personas.mosaic .persona-cards img{
  width: 100%;
  height: auto;
  display: block;
}

.ux-map-captions {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

.ux-map-captions .caption {
  width: 28rem;
}

.ux-map-captions .caption {
  padding: 1.5rem;
}

.ux-map-captions .card-title {
  font-size: 1.75rem;
  margin: 0;
  padding-bottom: 0.5rem;
}

.ux-map-captions .caption p:not(.card-title) {
  margin: 0;
}

.user-experience-map.mosaic .experience-map {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.user-experience-map.mosaic .experience-map img{
  width: 100%;
  height: auto;
  display: block;
}

/* DESIGN OPPORTUNITIES SECTION */

.design-opportunities.mosaic {
  padding: 6rem 0 4rem;
}

.design-opportunities.mosaic .mosaic-subtitle {
  max-width: 90rem;
  margin-bottom: 4rem;
}

/* Card stack */
.design-opportunities.mosaic .opportunity-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

/* Individual card */
.design-opportunities.mosaic .opportunity-card {
  background: #f6f6f6;
  border: 1px solid #a7a7a7;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Star + title row */
.design-opportunities.mosaic .opportunity-title {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  color: #000000;
  font-size: 1.75rem;
  line-height: 1.3;
}

.design-opportunities.mosaic .opportunity-title::before {
  content: "✦";
  color: #ff6040;
  flex-shrink: 0;
  line-height: 1.3;
}

/* Body text — no nested box */
.design-opportunities.mosaic .opportunity-body {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  padding-left: calc(1em + 0.75rem);
}

.design-opportunities.mosaic .opportunity-body p {
  margin: 0;
}

/* GUIDING QUESTION (Mosaic) */
.guiding-question.mosaic {
  text-align: left;       
  margin: 0;              /* kill the 30rem margins from grid.css */
  padding: 6rem 0 4rem;  
   
}

.guiding-question .mosaic-subtitle {
  max-width: 70rem;
}

.guiding-question.mosaic .guiding-question-video {
  position: relative;
  overflow: hidden;
}

.guiding-question-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

  object-position: center 50%;
}

.guiding-question.mosaic .guiding-question-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;

  /* optional: only if Vimeo letterboxes inside the iframe */
  transform: scale(1.5);
  transform-origin: center;
}


.initial-mockups.mosaic {
  padding: 6rem 0 4rem;
}

.initial-mockups.mosaic .mosaic-subtitle {
  max-width: 90rem;
  margin-bottom: 3.5rem;
}

/* 3-up layout */
.initial-mockups.mosaic .mockup-grid {
  display: flex;
  gap: 1.5rem;
  align-items: start;
}

/* stack: phone then caption */
.initial-mockups.mosaic .mockup-item {
  flex: 0 0 20.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.initial-mockups.mosaic .mockup-frame {
  width: 100%;
  max-width: 20.8rem;
  display: flex;
  justify-content: center;
}

.initial-mockups.mosaic .mockup-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* caption card under each phone */
.initial-mockups.mosaic .caption {
  width: 100%;
  max-width: 20.8rem;
  padding: 1.5rem;
  align-self: center;
}

.initial-mockups.mosaic .card-title {
  font-size: 1.75rem;
  margin: 0;
  padding-bottom: 0.5rem;
}

.initial-mockups.mosaic .caption p:not(.card-title) {
  margin: 0;
}

/* EXPLORE PAGE (Mosaic) — VIDEO ONLY */

.explore-page.mosaic {
  display: block;
}

.explore-header {
  max-width: 70rem;
  margin-bottom: 3.5rem;
}

.explore-body {
  margin: 1.5rem 0 0;
  max-width: 52rem;
  color: #f0f0f0;
  opacity: 0.92;
}

/* single media column */
.explore-media-single {
  display: grid;
  grid-template-columns: minmax(0, 42rem) minmax(0, 28rem);
  gap: 3rem;
  align-items: start;
}

/* gray bordered container for the phone */
.explore-phone-frame {
  background: #f6f6f6;
  border: 1px solid #a7a7a7;
  border-radius: 0.75rem;
  padding: 3rem 0rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* constrain phone width inside frame */
.explore-mockup {
  width: 45%;
  overflow: visible;
}

/* video fills the phone */
.explore-mockup video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* caption card — explore section */
.caption.explore-caption {
  width: 100%;
  padding: 1.5rem;
}

.caption.explore-caption .card-title {
  font-size: 1.75rem;
  margin: 0;
  padding-bottom: 0.5rem;
}

.caption.explore-caption p:not(.card-title) {
  margin: 0;
}

/* =========================
   MAP FEEDBACK (Mosaic) — phone left + captions right (like Explore)
   ========================= */

.map-feedback.mosaic .map-feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 26rem) minmax(0, 28rem); /* phone | captions */
  gap: 2rem;
  align-items: start;
  margin-top: 2.5rem;
}

/* keep phone from becoming massive */
.map-feedback.mosaic .map-feedback-phone {
  width: 100%;
  max-width: 26rem;
}

.map-feedback.mosaic .map-feedback-mockup {
  width: 100%;
  overflow: visible;
}

/* video fills the phone frame */
.map-feedback.mosaic .map-feedback-mockup video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* captions stack */
.map-feedback.mosaic .map-feedback-captions {
  display: grid;
  gap: 1.25rem;
}

/* optional: tighten caption spacing visually */
.map-feedback.mosaic .map-feedback-captions .caption {
  margin: 0;
}

/* space between section text and phone/captions */
.map-feedback.mosaic .mosaic-subtitle {
  margin-bottom: 4rem;
  max-width: 70rem;
}

.mosaic-reflection {
  padding: 8rem 0;
}

.mosaic-reflection .section-label {
  color: #e63030;
}

.final-results-video {
  position: relative;
  width: 100%;
  max-width: 90rem;          /* keeps it elegant on ultrawide */
  aspect-ratio: 16 / 9;

  margin-top: 2.5rem;
  overflow: hidden;

  border-radius: 0.75rem;
  border: 1px solid #a7a7a7;
}

.final-results-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}




/* MEDIA QUERIES */
/*               */

@media (min-width: 75rem) {
  .landing-grid {
    column-gap: 2rem;
  }

  .mosaic-showcase--wide .mosaic-media iframe {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;

  /* oversize so no white bars at any aspect ratio */
  width: 240% !important;
  height: 240% !important;

  transform: translate(-50%, -50%) !important;
  border: 0 !important;
}
}

@media (max-width: 68.8125rem) {

  /* Mockup items shrink proportionally on medium screens */
  .initial-mockups.mosaic .mockup-item {
    flex: 1 1 0;
    min-width: 0;
  }

  .about-title {
    font-size: 3rem;
  }

  .reflection-items {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .guiding-question {
    margin: 4rem 0;
  }

  .mosaic-overview .overview-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .mosaic-overview-left {
    width: auto;
    order: 2; /* move below on mobile */
  }

  .overview-right {
    aspect-ratio: 4 / 3;
    height: auto;
    order: 1; /* move above on mobile */
  }

  .competition-captions {
    grid-template-columns: 1fr; /* stack captions */
    gap: 1.5rem;
  }

  
}


@media (max-width: 61.5rem) {
  .container {
    padding: 0 1rem;
    box-sizing: border-box;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .navbar .container.flex {
    overflow-x: visible;   
    overflow-y: visible;
  }

  .bylte-wallet-grid {
    flex-direction: column;
  }

  .bylte-wallet-frame {
    width: 100%;
    box-sizing: border-box;
  }

  .bylte-wallet-grid .bylte-wallet-mockups img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }

  body {
    overflow-x: hidden;
  }

  
}

@media (max-width: 60rem) {
  .container,
  .menu-overlay .container.flex {
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .menu-overlay .container.flex {
    justify-content: flex-end;
  }

  /* NAVIGATION SECTION (mobile) */

  /* show hamburger */
  .nav-toggle {
    display: flex;              /* was: block */
    align-items: center;
    justify-content: center;
    height: 2.5rem;             /* approx navbar height */
    margin-left: auto;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    height: 2.5rem;
  }

  /* hide desktop nav on mobile */
  .nav-right {
    display: none;
  }

  .nav-location {
    font-size: 0.7rem;
  }
  .nav-location .clock {
    font-size: 0.7rem;
  }

  .landing-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "title"
      "image";
  }

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

  .site-footer {
    padding: 2rem;
  }
  .footer-buttons .footer-btn {
    font-size: 2rem;
    padding: 0.5rem 0;
  }
  .footer-back-top-btn {
    font-size: 0.75rem;
  }

  /* ABOUT PAGE */

   .about-title {
    padding: 4rem 0.5rem 1rem;
    font-size: 1.5rem;
    line-height: 1.1;
  }

  .about-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about {
  padding-top: 0rem;
}

  /* GREEN BASIL — COMPLEXITY */
  .gb-complexity-grid {
    grid-template-columns: 1fr;
  }

  /* GREEN BASIL — SOLUTION */
  .gb-solution-row {
    grid-template-columns: 1fr;
  }

  /* GREEN BASIL — REFLECTION */
  .gb-reflection-grid {
    grid-template-columns: 1fr;
  }

  /* GREEN BASIL — PROCESS */
  .gb-process-frame {
    flex-direction: column;
    padding: 1.5rem;
  }

  .gb-process-frame img {
    width: 100%;
  }

  /* GREEN BASIL — PROBLEM + RESEARCH CARDS */
  .gb-problem-cards,
  .gb-research-cards {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .gb-problem-cards .caption {
    width: 100%;
    box-sizing: border-box;
  }

  /* CASE STUDY OVERVIEW -> stack on smaller screens */
.cs-overview-grid,
.cs-overview--gb .cs-overview-grid {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.cs-overview--gb .cs-overview-left,
.cs-overview--gb .cs-info-card {
  height: auto;
}

.cs-overview--gb .cs-overview-image {
  height: 24rem;
}

  .overview-video video {
    height: auto;
  }

  .research-row {
    grid-template-columns: 1fr;
  }

  .bylte-principles-grid {
    grid-template-columns: 1fr;
  }

  .bylte-wallet-grid {
    flex-direction: column;
  }

  .bylte-wallet-mockups {
    justify-content: center;
    flex-wrap: wrap;
  }

  .bylte-wallet-grid .bylte-wallet-mockups img {
    max-height: 38rem;
    max-width: 22rem;
    width: auto;
  }

  /* finished product -> don't shrink on mobile */
.bylte-finished-product {
  padding: 0;          /* was 0 4rem in main.css */
  width: 100%;
}

.bylte-finished-product img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}


  /* MOSAIC SECTION */

  .mosaic-overview .overview-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .mosaic-overview-left {
    width: auto;
    order: 2; /* move below on mobile */
  }

  .overview-right {
    aspect-ratio: 4 / 3;
    height: auto;
    order: 1; /* move above on mobile */
  }

  .user-interviews.mosaic .interview-insights {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .user-personas.mosaic .persona-cards {
    grid-template-columns: 1fr; /* stack */
    gap: 1rem;
  }

  .ux-map-captions {
    gap: 1.5rem;
  }

  .ux-map-captions .caption {
    width: 100%;
  }

  .user-experience-map.mosaic .experience-map {
    grid-template-columns: 1fr; /* stack */
    gap: 1rem;
  }
  
  
  .design-opportunities.mosaic .opportunity-cards {
    grid-template-columns: 1fr;
  }

  .design-opportunities.mosaic .opportunity-card {
    padding: 1.25rem 1.5rem;
  }

  .design-opportunities.mosaic .opportunity-title {
    font-size: 1.1rem;
  }

  .design-opportunities.mosaic .opportunity-body {
    padding-left: 0;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .initial-mockups.mosaic .mockup-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .initial-mockups.mosaic .mockup-item {
    flex: none;
    width: 100%;
  }

  .initial-mockups.mosaic .mockup-frame,
  .initial-mockups.mosaic .caption {
    max-width: 28rem;
  }
   
  .explore-phone-frame {
    padding: 2rem;
  }

  .explore-mockup {
    width: 70%;
  }

  .explore-media-single {
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.caption.explore-caption {
  margin-top: 0.75rem;
}

.map-feedback.mosaic .explore-feedback-mockup {
  max-width: 28rem; /* same as your explore-phone mobile tweak */
}

.map-feedback.mosaic .map-feedback-layout {
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.map-feedback.mosaic .map-feedback-phone {
  max-width: 28rem; /* match your explore mobile size */
}

  /* make each showcase a 16:9 card on mobile instead of fixed 48rem */
  .mosaic-showcase {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .mosaic-showcase .mosaic-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  /* FORCE the Vimeo video to overfill and be cropped to the card */
  .mosaic-showcase--wide iframe {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;

    width: 240% !important;
    height: 240% !important;
    max-width: none !important;
    max-height: none !important;

    transform: translate(-50%, -50%) !important;
    border: 0 !important;
  }

  .footer-group {
    flex-direction: column;     
    align-items: flex-start;    
    gap: 1.5rem;                
  }

  .footer-back-top-btn {
    margin-left: 0;              
  }

  .footer-buttons {
    gap: 0rem;
  }
}

@media (min-width: 29.875rem) and (max-width: 51.0625rem) {


  .site-footer .footer-btn {
    font-size: 3.75rem;
    padding: 0.75rem 0;
  }

  .about-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .experience-list {
    gap: 1rem;
  }

  /* BYLTE SECTION */

  .competition-images {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .competition-captions {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }
}

@media (max-width: 23.6875rem) {
  .container {
    padding: 0 0.5rem;
  }

  .section-title {
    font-size: 1.5rem;
    line-height: 1.2;
    word-wrap: break-word;
  }

  /* wallet mocks */
  .bylte-wallet-mockups {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .bylte-wallet-mockups img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* design-system image */
  .bylte-design-system img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* competition images */
  .competition-images,
  .bylte-ab-tests {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .competition-image,
  .bylte-ab-tests img {
    width: 100%;
    max-width: 100%;
  }

  .navbar .container.flex {
    position: relative;
    align-items: center;
}
}

@media (max-width: 20rem) {
  .container,
  .menu-overlay .container.flex {
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .menu-overlay .container.flex {
    justify-content: flex-end;
  }

  /* NAVIGATION SECTION */

  .nav-location {
    font-size: 0.7rem;
  }
  .nav-location .clock {
    font-size: 0.7rem;
  }
  .overlay-nav a {
    font-size: 3rem;
  }

  /* LANDING SECTION */
  .landing-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "title"
      "image"
      "intro";
    row-gap: 1rem;
  }
  .landing-section h1 {
    font-size: 1.5rem;
    line-height: 1.1;
  }
  .landing-img {
    width: 100%;
    max-width: 100%;
  }

  /* PROJECT SECTION */
  .project-grid {
    grid-template-columns: 1fr; 
    gap: 1rem; 
  }
  .project-item-info h3 {
    font-size: 1.25rem;
  }
  .project-item-info p {
    font-size: 0.875rem;
  }

  /* FOOTER */
  .site-footer {
    padding: 2rem; 
  }
  .footer-buttons .footer-btn {
    font-size: 2rem; 
    padding: 0.5rem 0; 
  }
  .footer-back-top-btn {
    font-size: 0.75rem;
  }

  .menu-overlay .container.flex {
    padding-top: 0.75rem;
  }

  .overlay-nav {
    text-align: center;
  }

  .overlay-nav ul {
    padding: 0;
    margin: 0 auto;
    list-style: none;
  }

  /* ABOUT PAGE */

  .experience-list {
    padding: 0;
  }

  .container {
    padding: 0 0.5rem;
  }

  .cs-title {
    font-size: 1.5rem;
  }

  /* metric card */
  .difficulty-metric-card {
    margin: 1rem 0;
  }
  
  .metric-image {
    width: 100%;
  }

  /* competition */
  .competition-header {
    gap: 0.25rem;
    margin-bottom: 1rem;
  }
  .competition-images {
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .competition-image {
    width: 100%;
  }
  .competition-captions {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* research chart */
  .research-chart img {
    width: 100%;
  }

  /* guiding question */
  .guiding-question {
    margin: 2rem 0;
  }

  /* process steps */
  .bylte-principles-grid {
    grid-template-columns: 1fr;
  }

  .process-step .section-principle {
    margin-left: 1rem;
    font-size: 0.875rem;
  }

  /* wallet mocks & AB tests */
  .bylte-ab-tests {
    flex-direction: column;
    gap: 1rem;
  }
  .bylte-ab-tests img {
    width: 100%;
  }

  .bylte-wallet-mockups {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .bylte-wallet-mockups img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* final product */
  .bylte-final {
    margin-top: 4rem;
  }
  .bylte-finished-product {
    padding: 0;
    gap: 1rem;
  }
  .bylte-finished-product img {
    width: 100%;
  }

  /* reflection items -> stacked */
  .reflection-items {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }

  .bylte-design-system img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }
}

/* TEXT MEDIA QUERIES */

@media (max-width: 60rem) {


  h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }



  h3 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  p {
    font-size: 1rem;
    line-height: 1.2;
  }

  .landing-section {
    padding-top: 3rem;
  }

  .landing-section .highlight {
    font-size: 1.5rem;
    line-height: 1.3rem;
  }

  .overlay-nav a {
    font-size: 3rem;
  }
}

@media (max-width: 23.6875rem) {
  h1 {
    font-size: 1.5rem;
    line-height: 1.5;
  }
}