/* ========================================
   FONTS
   ======================================== */
@font-face {
  font-family: 'New Spirit';
  src: url('https://framerusercontent.com/assets/HUJvYJqQU1GuvULPYOLX7O51qc.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'New Spirit';
  src: url('https://framerusercontent.com/assets/v4QDcnRHH7rKKGAwIErp9KZT88.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #1a1a1a;
  --dark-gray: #3d3d3d;
  --mid-gray: #7a7a7a;
  --soft-gray: #b0b0b0;
  --light-gray: #ebebeb;
  --white: #ffffff;
  --max-width: 1200px;
  --content-width: 760px;
  --nav-height: 72px;
  --heading-font: 'New Spirit', Georgia, serif;
  --body-font: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--body-font);
  color: var(--black);
  background: #fbfbfb;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}

body.home::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: url('../images/gradient_bg2.webp') no-repeat center top / 100% auto;
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--black);
  color: var(--white);
}

/* ========================================
   NAV
   ======================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-height);
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
}

.nav-logo {
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: opacity 0.25s;
}

.nav-links a:hover {
  opacity: 0.5;
}

/* ========================================
   HOMEPAGE — HERO (centered)
   ======================================== */
.home-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 6rem) 3rem 6rem;
  display: flex;
  justify-content: center;
}

.hero-inner {
  max-width: 950px;
}

.home-hero h1 {
  font-family: var(--heading-font);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--black);
}

.home-hero .hero-mobile {
  display: none;
}

.home-hero .hero-sub {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--mid-gray);
  line-height: 1.7;
  font-weight: 500;
}

/* ========================================
   SECTION LABEL — black accent
   ======================================== */
.section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--black);
  margin-bottom: 2.5rem;
}

/* ========================================
   HOMEPAGE — PROJECT GRID (two columns)
   ======================================== */
.projects-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem 6rem;
  scroll-margin-top: var(--nav-height);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 2.5rem;
}

.project-card {
  display: block;
}

/* Image — full width of column, on top */
.project-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f2f2f2;
  border-radius: 12px;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--zoom, 1));
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(calc(var(--zoom, 1) * 1.03));
}

/* Text — below image */
.project-card-content {
  padding-top: 1.25rem;
}

.project-card-org {
  font-size: 0.75rem;
  font-weight: 600;
  color: #77b700;
  margin-bottom: 0.375rem;
}

.project-card-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: black;
}

.project-card-desc {
  font-size: 0.875rem;
  color: var(--dark-gray);
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.875rem;
}

.project-tags span {
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--black);
  background: transparent;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--black);
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Arrow link — black accent */
.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-top: 1rem;
  color: var(--black);
  letter-spacing: 0.01em;
}

.project-card-link .arrow {
  display: inline-block;
  transition: transform 0.25s;
  font-size: 1.125rem;
  line-height: 1;
}

.project-card:hover .project-card-link .arrow {
  transform: translateX(4px);
}

/* ========================================
   CASE STUDY — WRAPPER
   1200px container, flex column, children centered,
   all text LEFT-ALIGNED inside 70%-width blocks.
   ======================================== */
.case-wrapper {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 12px) 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  position: relative;
  background: #fbfbfb;
}

/* ========================================
   CASE STUDY — HERO IMAGE
   Large centered image with slight side margin
   ======================================== */
.case-hero {
  width: calc(100vw - 48px);
  max-width: calc(100vw - 48px);
  position: relative;
  z-index: 201;
}

.case-hero img {
  width: 100%;
  aspect-ratio: 2.4;
  object-fit: cover;
  border-radius: 12px;
}

/* ========================================
   CASE STUDY — TITLE & META
   70% width, left-aligned text
   ======================================== */
.case-header {
  width: 78%;
  text-align: left;
}

.case-header h1 {
  font-family: var(--heading-font);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 25px;
}

.case-header .case-subtitle {
  font-family: var(--body-font);
  font-size: 18px;
  font-weight: 400;
  color: var(--dark-gray);
  line-height: 1.3;
  margin-bottom: 40px;
}

.case-meta {
  display: flex;
  gap: 175px;
}

.case-meta-item h3 {
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--black);
  margin-bottom: 4px;
}

.case-meta-item p {
  font-size: 16px;
  font-weight: 400;
  color: var(--dark-gray);
  line-height: 1.3;
}

/* ========================================
   CASE STUDY — SECTION (PROBLEM, SOLUTIONS)
   70% width, left-aligned
   ======================================== */
.case-section {
  width: 78%;
  text-align: left;
}

.case-section-with-image {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

.case-section-with-image > img {
  width: 300px;
  max-width: 300px;
  aspect-ratio: 1;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
  padding: 0;
  margin-top: 20px !important;
  align-self: center;
}

.case-section-with-image h3 {
  margin-top: 0;
}

.findings-grid {
  width: 78%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.findings-image img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
}

.findings-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #b6d578 url('../images/green-wood-bg.png') center / cover no-repeat;
  border-radius: 8px;
  padding: 32px 40px;
  box-sizing: border-box;
  height: 100%;
}

.flow-step {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 500;
  color: #2f3525;
  margin: 0;
}

.flow-arrow {
  display: flex;
  justify-content: center;
  margin: 35px 0;
}

.case-section h2 {
  font-family: var(--heading-font);
  font-size: 24px;
  font-weight: 200;
  margin-top: 56px;
  margin-bottom: 20px;
  color: var(--black);
  line-height: 1.2;
}

.case-section p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--dark-gray);
  margin-bottom: 12px;
}

.case-section p:last-of-type {
  margin-bottom: 0;
}

.case-section h3 {
  position: relative;
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: var(--dark-gray);
  margin-top: 25px;
  margin-bottom: 5px;
}

.h3-star {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
}

.insights-intro {
  width: 78%;
  font-size: 16px;
  margin-bottom: -5px;
  margin-top: 40px;
  align-self: center;
  text-align: left;
}

/* ---- Insight blocks ---- */
.case-insight {
  width: 78%;
  background: #f7f7f7;
  padding: 28px 28px;
  text-align: left;
}

.research-band .case-insight {
  background: #ededee;
}


.insights-grid {
  width: 78%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.insights-grid.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

.insights-grid .case-insight {
  width: 100%;
}

.video-cell {
  border-radius: 8px;
  overflow: hidden;
}

.video-cell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.video-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-insight h3 {
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark-gray);
  margin-bottom: 16px;
}

.case-insight p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--dark-gray);
  margin-bottom: 12px;
}

.case-insight p:last-of-type {
  margin-bottom: 0;
}

.case-insight .insight-title {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 14px;
}

.case-insight p.hmw-callout {
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--black);
  margin-top: 20px;
}

/* ---- Research band ---- */
.research-band {
  width: 100%;
  background: transparent;
  padding: 0;
}

.research-band-inner {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
}

.research-band-inner > .case-quotes {
  margin-top: 0;
}

.section-divider {
  width: 78%;
  border: none;
  border-top: 1px solid #ddd;
  margin: 40px 0 0;
}

.research-band .placeholder-image {
  background: #eaeaea;
}

.case-section ul {
  padding-left: 20px;
  margin-top: 4px;
  margin-bottom: 12px;
}

.case-section li {
  font-size: 16px;
  line-height: 1.5;
  color: var(--dark-gray);
  margin-bottom: 6px;
}

.case-section img:not(.h3-star) {
  width: 100%;
  margin-top: 28px;
}

.placeholder-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--soft-gray);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 28px;
}

.placeholder-image.tall {
  aspect-ratio: 4 / 3;
}

.case-images .placeholder-image {
  margin-top: 0;
}

/* ========================================
   CASE STUDY — FEATURE BLOCK
   70% width, left-aligned text, image same width
   ======================================== */
.case-feature {
  width: 78%;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.case-feature-item {
  width: 100%;
}

.case-feature-text {
  text-align: left;
  margin-bottom: 28px;
}

.case-feature-text h3 {
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--black);
}

.case-feature-text p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--dark-gray);
  margin-bottom: 12px;
}

.case-feature-text p:last-of-type {
  margin-bottom: 0;
}

.case-feature-item img {
  width: 100%;
}

/* ========================================
   CASE STUDY — PULL QUOTES
   70% width, left-aligned
   ======================================== */
.case-quotes {
  width: 78%;
}

.quote-block {
  margin-bottom: 36px;
  padding-left: 24px;
  border-left: 3px solid #b6d578;
  text-align: left;
}

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

.quote-block blockquote {
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--dark-gray);
  font-style: italic;
}

.quote-block cite {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-style: normal;
  color: var(--mid-gray);
  font-weight: 500;
}

.quote-block cite .cite-title {
  font-style: italic;
  font-weight: 500;
}

/* ========================================
   CASE STUDY — OUTCOME + TAKEAWAYS
   70% width, left-aligned
   ======================================== */
.case-outcome {
  width: 78%;
  text-align: left;
}

.case-outcome h2 {
  font-family: var(--body-font);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  color: var(--black);
}

.case-outcome > p {
  font-size: 16px;
  line-height: 1.3;
  color: var(--dark-gray);
  margin-bottom: 36px;
}

.takeaway-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 32px;
}

.takeaway-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.takeaway-number {
  font-family: var(--heading-font);
  font-size: 50px;
  font-weight: 100;
  color: #b6d578;
  flex-shrink: 0;
  line-height: 1;
  min-width: 36px;
  text-align: right;
}

.takeaway-item h3 {
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0;
  margin-bottom: 4px;
  color: var(--black);
  line-height: 1.4;
}

.takeaway-item p {
  font-size: 16px;
  line-height: 1.3;
  color: var(--dark-gray);
}

/* ========================================
   CASE STUDY — SUPPORTING IMAGES
   70% width
   ======================================== */
.case-images {
  width: 78%;
}

.image-grid {
  display: grid;
  gap: 16px;
}

.image-grid.two-col {
  grid-template-columns: 1fr 1fr;
}

.image-grid.full {
  grid-template-columns: 1fr;
}

.image-grid figure {
  margin: 0;
}

.image-grid figure img {
  display: block;
}

.image-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.image-grid figcaption,
.image-caption {
  padding: 12px 0 0;
  font-size: 11px;
  color: var(--soft-gray);
  font-weight: 500;
  text-align: center;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 3rem;
  border-top: 1px solid var(--light-gray);
}

.about-page {
  padding-top: calc(var(--nav-height) + 4rem);
  border-top: none;
}

.about-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-image {
  width: 100%;
  margin-top: -1.5rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.about-text {
  padding-top: 0.5rem;
}

.about-text h2 {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.about-text p {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: black;
  margin-bottom: 1rem;
}

.about-text p:last-of-type {
  margin-bottom: 0;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 1.75rem;
}

.about-links a {
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--black);
  background: transparent;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--black);
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}

.about-links a:hover {
  background: #b6d578;
  border-color: #b6d578;
  color: var(--black);
}

.about-links .email-copy .copy-toast {
  bottom: calc(100% + 8px);
}

/* ========================================
   DRAGGABLE LAYER — in-page section
   ======================================== */
.draggable-layer {
  position: relative;
  width: 100%;
  height: 70vh;
  z-index: 100;
}

.draggable {
  position: absolute;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.draggable:hover {
  filter: brightness(1.05);
  transform: scale(1.05);
}

.draggable-hint {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--black);
  white-space: nowrap;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  padding: 12px 30px;
  z-index: 101;
  transition: transform 0.3s ease;
  pointer-events: auto;
}

.draggable-hint:hover {
  transform: translateX(-50%) scale(1.05);
}

.drag-instruction {
  position: absolute;
  top: 55%;
  left: 77%;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--soft-gray);
  pointer-events: none;
}

/* ========================================
   FOOTER — minimal Sydney style
   ======================================== */
footer {
  border-top: 1px solid var(--light-gray);
  padding: 2.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  background: #fbfbfb;
}

.about-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: none;
  background: transparent;
  border-top: none;
  z-index: 150;
}

footer p {
  font-size: 0.8125rem;
  color: var(--soft-gray);
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--black);
  transition: opacity 0.25s;
}

.footer-links a:hover,
.footer-links .email-copy:hover {
  opacity: 0.5;
}

.email-copy {
  position: relative;
}

.email-copy .copy-toast {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--white);
  background: var(--black);
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.email-copy .copy-toast.show {
  opacity: 1;
}

/* ========================================
   BACK LINK — black accent arrow
   ======================================== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--black);
  padding: 1.75rem 3rem;
  transition: gap 0.25s;
}

.back-link:hover {
  gap: 0.75rem;
}

/* ========================================
   PROGRESS BAR (case study pages)
   ======================================== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--black);
  z-index: 200;
  transition: width 0.05s linear;
}

/* ========================================
   TABLE OF CONTENTS — sticky sidebar
   ======================================== */
.toc {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 200px;
  padding: 0 32px;
  z-index: 50;
  transition: top 0s;
}

.toc-back {
  display: block;
  font-family: var(--body-font);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--dark-gray);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.25s;
}

.toc-back:hover {
  color: var(--black);
}

.toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: none;
  padding-left: 16px;
  position: relative;
}

.toc-line {
  position: absolute;
  left: -1px;
  width: 3px;
  background-image: radial-gradient(circle, rgba(50, 64, 79, 0.3) 0.75px, transparent 0.75px);
  background-size: 3px 4px;
  background-position: center;
  background-repeat: repeat-y;
  pointer-events: none;
}

.toc-star {
  position: absolute;
  left: -4.5px;
  top: 0;
  width: 10px;
  height: 10px;
  transition: top 0.3s ease;
  pointer-events: none;
}

.toc-star img {
  width: 100%;
  height: 100%;
}

.toc .toc-link {
  font-family: var(--body-font);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--soft-gray);
  text-decoration: none;
  transition: color 0.25s;
  display: block;
  line-height: 1.4;
}

.toc .toc-link:hover {
  color: var(--dark-gray);
}

.toc .toc-link.active {
  color: var(--black);
  font-weight: 600;
}

@media (max-width: 1500px) {
  .toc {
    display: none;
  }
}

/* ========================================
   IMPACT CHART — cost vs impact matrix
   ======================================== */
.impact-chart {
  position: relative;
  width: 100%;
  padding: 28px 52px;
}

.chart-label {
  position: absolute;
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c4c0b8;
}

.chart-label-top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.chart-label-bottom {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.chart-label-left {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  line-height: 1.4;
}

.chart-label-right {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  line-height: 1.4;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 2 / 1;
  gap: 3px;
}

.chart-quadrant {
  background: #ededeb;
  position: relative;
}

.chart-dot {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
}

.chart-dot::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1d3c3a;
  flex-shrink: 0;
  margin-bottom: 6px;
}

.chart-dot span {
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 600;
  color: #1d3c3a;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
  overflow: hidden;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  padding: 12px 16px;
  z-index: 10000;
}

.lightbox-close:hover {
  opacity: 0.7;
}

/* ========================================
   CASE CTA — external link button
   ======================================== */
.case-cta {
  text-align: center;
  padding: 3rem 0;
}

.case-cta a {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  border: 1.5px solid var(--black);
  border-radius: 50px;
  padding: 0.75rem 2rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.case-cta a:hover {
  background: #b6d578;
  border-color: #b6d578;
  color: var(--black);
}

/* ========================================
   PROJECT NAV — prev/next links
   ======================================== */
.project-nav {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: none;
  background: #fbfbfb;
  height: auto;
  z-index: 2;
}

.project-nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
  transition: opacity 0.25s;
}

.project-nav-link:hover {
  opacity: 0.5;
}

.project-nav-link.next {
  margin-left: auto;
}

/* ========================================
   FADE-IN ANIMATION
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 960px) {
  .insights-grid.three-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 1.5rem;
    z-index: 100;
    background: rgba(251, 251, 251, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  body.home::before {
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
  }

  .home-hero {
    padding-top: calc(var(--nav-height) + 14rem);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .home-hero .hero-desktop {
    display: none;
  }

  .home-hero .hero-mobile {
    display: block;
  }

  .home-hero h1 {
    font-size: 2.35rem;
  }

  .projects-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

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

  .about-section {
    padding: 4rem 1.5rem;
  }

  .about-page {
    padding-top: calc(var(--nav-height) + 2rem);
  }

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

  .about-image {
    max-width: 100%;
    margin: 0 auto;
  }

  .about-text {
    text-align: center;
  }

  .about-links {
    justify-content: center;
  }

  /* Draggable layer — mobile layout */
  .draggable-layer {
    height: 95vh;
  }

  .draggable-hint {
    font-size: 0.85rem;
    padding: 10px 20px;
  }

  .case-wrapper {
    width: 100%;
    padding: 80px 16px 60px;
  }

  .case-hero,
  .case-header,
  .case-section,
  .case-feature,
  .case-quotes,
  .case-outcome,
  .case-images,
  .case-insight {
    width: 95%;
  }

  .case-insight {
    padding: 28px 24px;
  }

  .research-band {
    padding: 40px 0;
  }

  .research-band-inner {
    width: 100%;
  }

  .case-meta {
    gap: 24px;
    flex-wrap: wrap;
  }

  .insights-grid,
  .findings-grid {
    grid-template-columns: 1fr;
    width: 95%;
  }

  .case-section-with-image {
    flex-direction: column;
  }

  .case-section-with-image > img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    align-self: auto;
    margin-top: 0 !important;
  }

  .impact-chart {
    padding: 24px 36px;
  }

  .chart-label {
    font-size: 9px;
  }

  .chart-dot::before {
    width: 10px;
    height: 10px;
    margin-bottom: 4px;
  }

  .chart-dot span {
    font-size: 10px;
  }

  .image-grid.two-col {
    grid-template-columns: 1fr;
  }

  .back-link {
    padding: 1.5rem;
  }

  footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .about-footer {
    position: static;
  }
}

@media (max-width: 480px) {
  .case-details {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 1.25rem;
  }
}
