/*  CASE STUDY STYLESHEE */

* {
  box-sizing: border-box;
}

/* to stop the wiggle I believe from STAT callout */
html,
body {
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* STICKY SECTION NAVIGATION */

.section-nav {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
}

.section-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-nav .nav-dot {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #666;
  transition: color 0.2s ease;
}

.section-nav .nav-dot::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  border: 2px solid #ddd;
  transition: all 0.2s ease;
}

.section-nav .nav-dot:hover::before {
  background: #aaa;
  border-color: #aaa;
}

.section-nav .nav-dot.active::before {
  background: #8f4bb1;
  border-color: #8f4bb1;
}

.section-nav .nav-dot span {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  white-space: nowrap;
}

.section-nav .nav-dot:hover span,
.section-nav .nav-dot.active span {
  opacity: 1;
  transform: translateX(0);
}

/* Hide on smaller screens */
@media (max-width: 1200px) {
  .section-nav {
    display: none;
  }
}

/* PAGE CONTENT */

.content-casestudy {
  margin-left: auto;
  margin-right: auto;
  max-width: 1100px;
  padding-inline: clamp(16px, 4vw, 50px);
}

/* SECTION HEADERS */

.section-header {
  margin-bottom: 1.5rem;
}

.section-label {
  display: inline-block;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8f4bb1;
  margin-bottom: 8px;
}

.section-header h2 {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #141414;
}

.section-intro {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.7;
  color: #444;
  max-width: 720px;
  margin-bottom: 2rem;
}

/* HERO SECTION */

.hero-casestudy {
  width: 100%;
  padding-block: clamp(2rem, 6vh, 4rem);
  margin-bottom: clamp(2rem, 4vh, 3rem);
}

.hero-container-casestudy {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: clamp(24px, 5vw, 60px);
}

.hero-content-casestudy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-content-casestudy .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  padding: 8px 0;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
  width: fit-content;
}

.hero-content-casestudy .back-link:hover {
  color: #141414;
}

.hero-content-casestudy .back-link i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.hero-content-casestudy .back-link:hover i {
  transform: translateX(-3px);
}

.hero-casestudy h1 {
  /* font-family: "Londrina Shadow", sans-serif;
  font-weight: 400; */
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1;
  margin: 0;
  color: #141414;
}

.hero-tagline {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: #444;
  margin: 0.75rem 0 1.5rem;
  max-width: 480px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e7e3;
  max-width: 360px;
}

.hero-meta .meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-meta .meta-label {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
}

.hero-meta .meta-value {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #141414;
}

.hero-image-casestudy {
  position: relative;
}

.hero-image-casestudy img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1) !important;
}

.hero-image-casestudy::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(135deg, #fcfbe5 0%, #f0e5fc 100%);
  border-radius: 16px;
  z-index: -1;
  filter: blur(8px);
}

@media (max-width: 900px) {
  .hero-container-casestudy {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-image-casestudy {
    order: -1;
    max-width: 600px;
    margin-inline: auto;
  }

  .hero-meta {
    max-width: 100%;
  }

  .hero-tagline {
    max-width: 100%;
  }
}

/* Hero Results */
.hero-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e7e3;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.result-item i {
  color: #16aa6a;
  font-size: 1rem;
}

/* TOP BUTTON */

.top-button {
  display: flex;
  justify-content: flex-start;
  margin-top: clamp(1.5rem, 3vh, 2.5rem);
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
}

.top-button button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #141414;
  background-color: #f1f0eb;
  border: 1px solid #000;
  border-radius: 8px;
  padding: 12px 26px;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.top-button button:hover {
  background-color: #e9e8e1;
}

.top-button button span {
  display: flex;
  align-items: center;
}

.top-button button img {
  width: 20px;
  height: auto;
  transition: transform 0.3s ease;
}

.top-button button:hover img {
  transform: translateY(4px);
}

@media (max-width: 640px) {
  .top-button {
    justify-content: center;
  }
}

/* STAT CALLOUT */

.stat-callout {
  background: linear-gradient(135deg, #8f4bb1 0%, #6b3a8c 100%);
  margin: 3rem calc(-50vw + 50%);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 5vw, 3rem);
}

.stat-callout-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  color: #fff;
}

.stat-number {
  display: block;
  font-family: "Londrina Solid", sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 500;
  opacity: 0.9;
  max-width: 180px;
  display: block;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .stat-callout-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }
}

/* PROJECT OVERVIEW */

.project-overview {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

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

.overview-main h3 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #141414;
  margin: 0 0 0.75rem;
}

.overview-main h3:not(:first-child) {
  margin-top: 1.5rem;
}

.overview-main p {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin: 0;
}

.overview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.context-card {
  background: #f8f7f5;
  border-left: 3px solid #8f4bb1;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
}

.context-card h4 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8f4bb1;
  margin: 0 0 0.5rem;
}

.context-card p {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

@media (max-width: 768px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
}

/* Solution Highlight */
.solution-highlight {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-top: 3rem;
  padding: 2rem;
  background: #f8f7f5;
  border-radius: 16px;
}

.solution-highlight-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.solution-highlight-content h3 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #141414;
  margin: 0 0 1rem;
}

.solution-highlight-content p {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin: 0 0 1rem;
}

.solution-highlight-content .highlight-note {
  font-size: 0.95rem;
  font-style: italic;
  color: #666;
  padding-left: 1rem;
  border-left: 3px solid #8f4bb1;
  margin: 0;
}

@media (max-width: 768px) {
  .solution-highlight {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .solution-highlight-image {
    order: -1;
  }
}

/* PULL QUOTE */

.pull-quote {
  margin: 2.5rem 0;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, #f8f5fc 0%, #f5f8fc 100%);
  border-left: 4px solid #8f4bb1;
  border-radius: 0 12px 12px 0;
}

.pull-quote p {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.6;
  color: #333;
  margin: 0 0 1rem;
}

.pull-quote cite {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  font-style: normal;
  color: #666;
}

/* CARD COLOR ACCENTS */

.card-accent-purple {
  border-left: 4px solid #8f4bb1;
}

.card-accent-teal {
  border-left: 4px solid #00739d;
}

.card-accent-green {
  border-left: 4px solid #2ff29e;
}

.card-accent-orange {
  border-left: 4px solid #f2994a;
}

/* FINAL SOLUTION SECTION */

.final-solution {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.final-container {
  margin: 0 auto;
}

.final-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.fs-card {
  background: #fff;
  border: 1px solid #e8e7e3;
  border-radius: 12px;
  padding: 20px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.fs-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.fs-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  color: #8f4bb1;
}

.fs-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.fs-card h3 {
  margin: 0 0 8px;
  font:
    700 1.1rem/1.3 "Inter",
    system-ui,
    sans-serif;
  color: #141414;
}

.fs-card p {
  margin: 0;
  font:
    400 0.95rem/1.5 "Inter",
    system-ui,
    sans-serif;
  color: #555;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f8f7f5;
  border: 1px solid #e8e7e3;
  border-radius: 100px;
  font:
    500 0.85rem/1 "Inter",
    system-ui,
    sans-serif;
  color: #444;
}

.chip-tech {
  background: #e5ecfc;
  border-color: #d0dcf5;
  color: #1e40af;
}

.bullet-list {
  margin: 12px 0 0;
  padding-left: 18px;
  font:
    400 0.95rem/1.6 "Inter",
    system-ui,
    sans-serif;
  color: #555;
}

.bullet-list .flow {
  list-style: none;
  padding-left: 0;
  margin-left: -18px;
  margin-top: 8px;
  font-weight: 500;
}

@media (max-width: 760px) {
  .final-grid {
    grid-template-columns: 1fr;
  }
}

/* Mascot Teaser */
.mascot-teaser {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  font-style: italic;
  color: #555;
  margin: 12px 0 16px;
}

.mascot-list {
  list-style: none;
  margin: 0;
  margin-top: 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  color: #444;
}

.mascot-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mascot-emoji {
  font-size: 1.3rem;
}

.mascot-list strong {
  color: #141414;
}

/* USABILITY TESTING */

.usability {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.usa-container {
  margin: 0 auto;
}

.usa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.usa-card {
  background: #fff;
  border: 1px solid #e8e7e3;
  border-radius: 12px;
  padding: 20px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.usa-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.usa-card h3 {
  margin: 0 0 12px;
  font:
    700 1.1rem/1.3 "Inter",
    system-ui,
    sans-serif;
  color: #141414;
}

.usa-card h4 {
  margin: 16px 0 8px;
  font:
    600 0.9rem/1.3 "Inter",
    system-ui,
    sans-serif;
  color: #666;
}

.usa-card p {
  margin: 0 0 10px;
  font:
    400 0.95rem/1.5 "Inter",
    system-ui,
    sans-serif;
  color: #555;
}

.usa-participants {
  display: flex;
  align-items: center;
  gap: 10px;
}

.usa-badge {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #8f4bb1;
  color: #fff;
  font:
    700 0.9rem/1 "Inter",
    system-ui;
}

.usa-tasks {
  list-style: disc inside;
  margin: 0;
  padding-left: 0;
  font:
    400 0.95rem/1.6 "Inter",
    system-ui,
    sans-serif;
  color: #555;
}

.usa-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.usa-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font:
    400 0.95rem/1.5 "Inter",
    system-ui,
    sans-serif;
  color: #555;
}

.usa-list svg {
  width: 20px;
  height: 20px;
  color: #068c52;
  flex: 0 0 20px;
  margin-top: 2px;
}

.usa-outcome {
  margin-top: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #e8faf0 0%, #e5f5eb 100%);
  border: 1px solid #c3e8d0;
  border-radius: 8px;
  font:
    500 0.95rem/1.5 "Inter",
    system-ui,
    sans-serif;
  color: #1a5f36;
}

@media (max-width: 820px) {
  .usa-grid {
    grid-template-columns: 1fr;
  }
}

/* DEVELOPMENT */

.development {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.dev-container {
  margin: 0 auto;
}

.dev-built {
  margin: 0 0 12px;
  color: #444;
  font:
    400 1rem/1.5 "Inter",
    system-ui,
    sans-serif;
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.dev-card {
  background: #fff;
  border: 1px solid #e8e7e3;
  border-left: 4px solid #00739d;
  border-radius: 0 12px 12px 0;
  padding: 20px;
}

.dev-card h3 {
  margin: 0 0 12px;
  font:
    700 1.1rem/1.3 "Inter",
    system-ui,
    sans-serif;
  color: #141414;
}

.dev-list {
  margin: 0;
  padding-left: 20px;
  font:
    400 0.95rem/1.7 "Inter",
    system-ui,
    sans-serif;
  color: #555;
}

.dev-list li {
  margin-bottom: 8px;
}

.dev-list strong {
  color: #141414;
}

/* LESSONS LEARNED */

.lessons {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.lessons-container {
  margin: 0 auto;
}

.lesson-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lesson-card {
  background: #fff;
  border: 1px solid #e8e7e3;
  border-radius: 12px;
  padding: 20px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.lesson-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.lesson-card--purple {
  border-top: 4px solid #8f4bb1;
}

.lesson-card--teal {
  border-top: 4px solid #00739d;
}

.lesson-card--green {
  border-top: 4px solid #2ff29e;
}

.lesson-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f8f7f5;
  font:
    700 0.9rem/1 "Inter",
    system-ui,
    sans-serif;
  color: #666;
  margin-bottom: 12px;
}

.lesson-card h3 {
  margin: 0 0 8px;
  font:
    700 1.05rem/1.3 "Inter",
    system-ui,
    sans-serif;
  color: #141414;
}

.lesson-card p {
  margin: 0;
  font:
    400 0.95rem/1.5 "Inter",
    system-ui,
    sans-serif;
  color: #555;
}

@media (max-width: 820px) {
  .lesson-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* DESIGN BRIEF */

.design-brief {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.brief-container {
  margin: 0 auto;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.brief-card {
  background: #fff;
  border: 1px solid #e8e7e3;
  border-radius: 12px;
  padding: 20px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.brief-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.brief-card h3 {
  margin: 0 0 10px;
  font:
    700 1.05rem/1.3 "Inter",
    system-ui,
    sans-serif;
  color: #141414;
}

.brief-card p {
  margin: 0;
  font:
    400 0.95rem/1.5 "Inter",
    system-ui,
    sans-serif;
  color: #555;
}

.brief-dl {
  margin: 0;
  padding: 0;
}

.brief-dl .row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #f0efea;
}

.brief-dl .row:first-child {
  border-top: none;
  padding-top: 0;
}

.brief-dl dt {
  font:
    600 0.9rem/1.3 "Inter",
    system-ui,
    sans-serif;
  color: #141414;
}

.brief-dl dd {
  margin: 0;
  font:
    400 0.9rem/1.5 "Inter",
    system-ui,
    sans-serif;
  color: #555;
}

.palette {
  display: inline-flex;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.palette li {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--sw);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.brief-list {
  margin: 0;
  padding-left: 18px;
  font:
    400 0.95rem/1.6 "Inter",
    system-ui,
    sans-serif;
  color: #555;
}

@media (max-width: 760px) {
  .brief-grid {
    grid-template-columns: 1fr;
  }

  .brief-dl .row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* CAROUSEL */

.design-graphics {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.carousel {
  background: #f8f7f5;
  border: 1px solid #e8e7e3;
  border-radius: 12px;
  padding: 28px 20px 40px;
  margin-top: 1.5rem;
}

.carousel-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.carousel-panel {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 16px;
}

.arrow-col {
  display: grid;
  place-items: center;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #141414;
  background: #fff;
  color: #141414;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.carousel-arrow:hover {
  background: #f1f0eb;
}

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

.carousel-arrow .icon {
  width: 20px;
  height: 20px;
}

.viewport-col {
  min-width: 0;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  transition: transform 0.45s ease;
}

.slide {
  flex: 0 0 100%;
}

.graphic {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.graphic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.carousel-caption {
  text-align: center;
  margin: 16px 0 0;
  color: #555;
  font:
    500 0.9rem/1.4 "Inter",
    system-ui,
    sans-serif;
}

@media (max-width: 680px) {
  .carousel-panel {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .graphic {
    min-height: 220px;
  }
}

/* DESIGN IMAGES */

.design {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.design-container {
  margin: 0 auto;
}

.design-imgs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 1.5rem;
}

.design-img {
  margin: 0;
  background: #fff;
  border: 1px solid #e8e7e3;
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.design-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.design-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.design-img figcaption {
  text-align: center;
  padding: 12px 16px;
  font:
    500 0.85rem/1.4 "Inter",
    system-ui,
    sans-serif;
  color: #555;
  background: #fafaf9;
  border-top: 1px solid #f0efea;
}

/* PROJECT NAV FOOTER */

.project-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 2rem;
  border-top: 1px solid #e8e7e3;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.project-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #141414;
  text-decoration: none;
  padding: 12px 20px;
  border: 2px solid #e0dfda;
  border-radius: 8px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.project-nav-link:hover {
  background-color: #f7f7f5;
  border-color: #cccbc5;
}

.project-nav-link i {
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .project-nav-footer {
    flex-direction: column;
    gap: 1rem;
  }

  .project-nav-link {
    width: 100%;
    justify-content: center;
  }
}

/* FOOTER */

.site-footer {
  width: 100%;
  background: #efefe5;
  padding: 28px 0;
}

.footer-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 24px);
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}

.footer-logo {
  width: clamp(90px, 10vw, 120px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

.tagline {
  max-width: 48ch;
  margin: 0;
  font-size: clamp(0.95rem, 1.2vw, 1rem);
  line-height: 1.5;
  font-weight: 500;
  color: #171717;
}

.footer-right {
  display: grid;
  grid-template-columns: auto;
  align-items: center;
}

.footer-nav a {
  display: block;
  text-decoration: none;
  color: #1f1f1f;
  padding: 10px 0;
  border-radius: 6px;
  font-family: "Inter", system-ui, sans-serif;
}

.footer-nav a:hover {
  color: #000;
  background-color: #f1f0eb;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 100px 1fr;
    row-gap: 20px;
  }

  .footer-right {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-left {
    justify-self: center;
  }

  .footer-right {
    justify-items: center;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .hero-content-casestudy .back-link:hover i,
  .fs-card:hover,
  .usa-card:hover,
  .lesson-card:hover,
  .brief-card:hover,
  .design-img:hover {
    transform: none;
  }
}
