/* ============================================================
   GAUDI CASE STUDY SPECIFIC STYLES
   Extends style.css and implements pixel-perfect fluid scaling.
   Design baseline width: 1512px.
   ============================================================ */

html {
  scroll-behavior: smooth;
}

/* ============================================================
   FLUID ROOT SCALING SYSTEM
   ============================================================ */
@media (min-width: 1200px) {
  html {
    /* 1rem = 10px at 1512px viewport width.
       Conversion: (10 / 1512) * 100vw = 0.661375vw.
       Clamped between 8px (to keep body readable on smaller screens)
       and 14px (to keep elements from becoming too massive on 4K). */
    font-size: clamp(8px, 0.661375vw, 14px) !important;
  }

  :root {
    --page-inset: 4.0rem; /* 40px left/right margins matching Figma design */
  }

  .hero-header .typo-d1-b {
    font-size: 7.6rem;
  }
}

/* Base Spacing Gaps in rem (Scales with root) */
:root {
  --gap-section-desktop: 12.0rem; /* 120px gap */
  --gap-block-desktop: 8.0rem;    /* 80px gap */
  --gap-row-desktop: 4.0rem;      /* 40px gap */
  --gap-inner-desktop: 2.4rem;    /* 24px gap */
}

/* ============================================================
   TYPOGRAPHY TIER SYSTEM (Figma -> rem conversions)
   ============================================================ */

/* Display 1 (D1 B) - Hero Title */
.typo-d1-b {
  font-family: var(--sans);
  font-size: 8.8rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.06em;
  color: var(--ink);
}

/* Display 2 (D2 B) - CTA Header */
.typo-d2-b {
  font-family: var(--sans);
  font-size: 7.2rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

/* Display 3 (D3 B) - Situation & Hero Index */
.typo-d3-b {
  font-family: var(--sans);
  font-size: 5.6rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}

/* Headline 2 (H2 B) - Section Headers */
.typo-h2-b {
  font-family: var(--sans);
  font-size: 4.0rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Headline 3 (H3 B) - Quote Cards */
.typo-h3-b {
  font-family: var(--sans);
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* Headline 4 (H4 B) - Subheadings */
.typo-h4-b {
  font-family: var(--sans);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Body 3 (B3 Blog) - Section Lede */
.typo-b3-blog {
  font-family: var(--sans);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Body 4 (B4 Blog) - General Body Copy */
.typo-b4-blog {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Label 2 (L2 Blog/Website) - Buttons, Eyebrows */
.typo-l2-blog {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Label 3 (L3 Blog/Website) - Tags, Headers */
.typo-l3-blog {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Label 5 (L5 Blog) - Micro Labels, Citations */
.typo-l5-blog {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mobile-br {
  display: none;
}

.desktop-tablet-br {
  display: block;
}

.desktop-br {
  display: block;
}

/* ============================================================
   GRID & LAYOUT CONTAINERS
   ============================================================ */
.fluid-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap-inner-desktop);
  row-gap: var(--gap-row-desktop);
  width: 100%;
}

.case-section {
  padding-left: var(--page-inset);
  padding-right: var(--page-inset);
  padding-top: var(--gap-section-desktop);
  padding-bottom: var(--gap-section-desktop);
  border-bottom: 0; /* Override style.css global section border */
  background: var(--bg);
}

.case-section.no-bottom-border {
  border-bottom: 0;
}

.case-section.pt-0 {
  padding-top: 0;
}

.case-section.pb-0 {
  padding-bottom: 0;
}

/* ============================================================
   IMAGE PLACEHOLDERS
   ============================================================ */
.ph-block {
  background: var(--paper) !important;
  border: 1px solid var(--rule);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.ph-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to top right, transparent calc(50% - 0.5px), var(--rule-soft) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(to bottom right, transparent calc(50% - 0.5px), var(--rule-soft) 50%, transparent calc(50% + 0.5px));
  background-size: 100% 100%;
  pointer-events: none;
  opacity: 0.25;
}

.ph-block::after {
  content: "";
  position: absolute;
  top: 1.6rem; left: 1.6rem; right: 1.6rem; bottom: 1.6rem;
  border: 1px dashed var(--rule-soft);
  pointer-events: none;
  opacity: 0.6;
}

.ph-block-center {
  position: relative;
  z-index: 2;
  background: var(--paper);
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ph-block-dot {
  width: 0.60rem;
  height: 0.60rem;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   SPECIFIC SECTION COMPOSITION
   ============================================================ */

/* Hero Action Bar */
.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem var(--page-inset);
  border-bottom: 1px solid var(--rule-soft);
  width: 100%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.breadcrumb-back {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink);
  transition: color 240ms var(--ease-out);
}

.breadcrumb-back svg {
  width: 1.8rem;
  height: 1.8rem;
  transition: color 240ms var(--ease-out);
}

.breadcrumb-back:hover,
.breadcrumb-back:active,
.breadcrumb-back:focus {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--rule-soft);
  font-size: 1.2rem;
}

.breadcrumb-curr {
  color: var(--mute);
}

.tags-list {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.tag-pill {
  padding: 0.4rem 1.2rem;
  border-radius: 99.9rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
}

.tag-pill.tag-pill--dark {
  background: var(--rule);
  color: var(--bg);
}

/* Hero Header */
.hero-header {
  padding: 6.0rem var(--page-inset);
  border-bottom: 0; /* Override style.css global section border */
}

.hero-index {
  grid-column: 1 / span 2;
  color: rgba(26, 26, 26, 0.18);
}

.hero-content {
  grid-column: 3 / span 10;
  display: flex;
  flex-direction: column;
  gap: 1.9rem; /* 19.185px in Figma */
  padding-top: 1.5rem; /* 15px top padding to align with grid top */
}

.hero-kicker {
  color: var(--mute);
}

.hero-image-wrap {
  margin: 0;
  height: auto;
  aspect-ratio: 16 / 9;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-left: 0;
  border-right: 0;
  background: #E3DED2;
}

.hero-image-wrap .ph-block {
  border: 0 !important;
}

/* Situation block */
#situation {
  position: relative;
  height: 250vh;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--bg);
}
.situation-scroll-helper {
  display: none;
}
.situation-sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
}
.situation-text {
  grid-column: 2 / span 10;
  display: flex;
  flex-direction: column;
  gap: 5.88rem;
}

.situation-text p {
  text-indent: 0;
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

/* What we were brought in to do */
#brief {
  padding-top: 4.0rem;
  padding-bottom: 0;
}

#brief .fluid-grid {
  row-gap: 0;
}

.brief-title {
  grid-column: 2 / span 4;
}

.brief-desc {
  grid-column: 7 / span 5;
}

.brief-image-wrap {
  grid-column: 2 / span 10;
  height: auto;
  aspect-ratio: 1189.33 / 936;
  margin-top: 6.0rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: 12.0rem;
}

/* How we worked nested grids */
#process {
  padding-top: 10.8rem;
  padding-bottom: 0;
}
#process .fluid-grid {
  row-gap: 0;
}
.work-row {
  grid-column: 2 / span 10;
  border-bottom: 1px solid var(--rule-soft);
}
.work-row:first-of-type {
  padding-top: 6.0rem;
  padding-bottom: 8.0rem;
  margin-bottom: 0;
}
.work-row:last-of-type {
  padding-top: 8.0rem;
  padding-bottom: 10.8rem;
  margin-bottom: 0;
}



.work-row-intro {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  column-gap: var(--gap-inner-desktop);
  margin-bottom: var(--gap-row-desktop);
}

.work-row-title {
  grid-column: span 5;
}

.work-row-desc {
  grid-column: 6 / span 5;
}

.work-row-gallery-2col {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  column-gap: var(--gap-inner-desktop);
}

.work-gallery-left {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.work-gallery-left .ph-block {
  height: auto;
  aspect-ratio: 582.66 / 380;
}

.work-gallery-right {
  grid-column: 6 / span 5;
}

.work-gallery-right .ph-block {
  height: auto;
  aspect-ratio: 582.66 / 565;
}

/* 3-image layout */
.work-gallery-3grid-wrap {
  margin-top: 4.8rem;
  margin-bottom: 2.4rem;
}

.work-gallery-3grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2.0rem;
  width: 100%;
  height: auto;
  aspect-ratio: 1189.33 / 800;
}

.work-grid-img-large {
  grid-column: span 5;
  grid-row: span 2;
}

.work-grid-img-small {
  grid-column: 6 / span 5;
}

/* Output Showcase */
#output {
  padding-top: 10.8rem;
  padding-bottom: 0;
}

.output-container {
  grid-column: 2 / span 10;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap-inner-desktop);
}

.output-header {
  grid-column: 1 / span 12;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap-inner-desktop);
  padding-bottom: 0;
  margin-bottom: 0;
}

.output-title {
  grid-column: 1 / span 5;
}

.output-desc {
  grid-column: 8 / span 5;
  align-self: start;
}

.output-gallery-2col {
  grid-column: 1 / span 12;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap-inner-desktop);
  border-bottom: 1px solid var(--rule-soft);
  padding-top: 6.0rem;
  padding-bottom: 10.8rem; /* 108px padding bottom */
  margin-bottom: 0;
}

.output-gallery-left {
  grid-column: span 7;
  height: auto;
  aspect-ratio: 629.33 / 558.195;
}

.output-gallery-right {
  grid-column: span 5;
  height: auto;
  aspect-ratio: 442.67 / 558.195;
}

/* Result Showcase */
#results {
  padding-top: 10.8rem;
  padding-bottom: 0;
}

.result-section-wrap {
  grid-column: 2 / span 10;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  column-gap: var(--gap-inner-desktop);
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: 10.8rem;
}

.result-left {
  grid-column: span 4;
}

.result-right {
  grid-column: 6 / span 5;
  display: flex;
  flex-direction: column;
  gap: var(--gap-row-desktop);
  align-items: start;
}

.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 59.4rem; /* 594px height in Figma */
  border: 1px solid var(--ink); /* Solid ink border as per design */
  background: var(--bg);
  padding: 3.2rem;
}

.quote-header {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

.quote-header blockquote {
  margin: 0;
  padding: 0;
  max-width: none !important;
  text-wrap: wrap !important;
}

.quote-header blockquote::before,
.quote-header blockquote::after {
  content: none !important;
}

.quote-mark {
  width: 5.531rem;
  height: 5.0rem;
  color: var(--accent);
}

.quote-citation {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.quote-author {
  opacity: 0.8; /* 80% opacity in Figma */
}

.quote-role {
  color: var(--accent);
}

/* Call-to-Action block overrides */
.cta-fluid-section {
  background: var(--ink-2);
  padding: 12.0rem var(--page-inset);
  border-bottom: 0;
  position: relative;
  overflow: hidden;
}

.cta-fluid-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 0.10rem, transparent 0.10rem),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0.10rem, transparent 0.10rem);
  background-size: 3.20rem 3.20rem;
  pointer-events: none;
}

.cta-fluid-container {
  grid-column: 2 / span 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  gap: 4.8rem;
}

.cta-fluid-container h2 {
  color: var(--bg);
  max-width: 25ch;
}

.cta-fluid-container .btn-primary {
  align-self: center !important;
}




/* Next Case Section */
.case-studies-section {
  padding: 12.0rem var(--page-inset);
  border-bottom: 0; /* Override style.css global section border */
}

.case-studies-header {
  grid-column: 2 / span 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4.8rem;
}

.back-to-top-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  padding-bottom: 0.4rem;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.back-to-top-btn:hover,
.back-to-top-btn:active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.case-studies-grid {
  grid-column: 2 / span 10;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2.4rem;
}

.case-studies-grid .work-card {
  width: 100% !important;
  max-width: none !important;
  flex-shrink: 1 !important;
}

.case-studies-grid .work-thumb {
  aspect-ratio: 522 / 368 !important;
}

/* ============================================================
   RESPONSIVE COMPATIBILITY DOWN TO MOBILE
   ============================================================ */
@media (max-width: 1199px) {
  html {
    font-size: calc(10 * 100vw / 1024) !important;
  }
  
  :root {
    --page-inset: 2.4rem;
  }

  .desktop-br {
    display: none !important;
  }

  .fluid-grid {
    column-gap: 2.0rem;
    row-gap: 0 !important;
  }

  .case-section {
    padding-top: 7.2rem;
    padding-bottom: 0;
  }

  #situation {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: auto !important;
  }

  .situation-scroll-helper {
    display: block !important;
    height: 100vh !important;
  }

  .situation-sticky-wrapper {
    position: sticky !important;
    top: 8dvh !important;
    height: 72vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  #brief {
    padding-top: 4.0rem !important;
    padding-bottom: 0 !important;
  }

  .brief-title {
    grid-column: 1 / span 5 !important;
  }

  .brief-desc {
    grid-column: 7 / span 6 !important;
  }

  .brief-desc p:last-child {
    font-size: 1.4rem !important;
    margin-top: 2.0rem !important;
  }

  #process {
    padding-top: 7.2rem !important;
    padding-bottom: 0 !important;
  }

  #output {
    padding-top: 7.2rem !important;
    padding-bottom: 0 !important;
  }

  #results {
    padding-top: 7.2rem !important;
    padding-bottom: 0 !important;
  }

  .action-bar {
    padding: 1.8rem 2.4rem 1.9rem !important;
  }

  .hero-header {
    padding: 6.0rem 2.4rem !important;
  }

  .hero-image-wrap {
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
  }

  .typo-d1-b { font-size: 6.0rem !important; }
  .typo-d2-b { font-size: 5.6rem !important; }
  .typo-d3-b { font-size: 4.4rem !important; }
  .typo-h2-b { font-size: 3.2rem !important; }
  .typo-h3-b { font-size: 2.4rem !important; }
  .typo-h4-b { font-size: 2.0rem !important; }
  .typo-l2-blog { font-size: 1.5rem !important; }
  .typo-b4-blog { font-size: 1.4rem !important; }
  .typo-l5-blog { font-size: 1.2rem !important; }
  .typo-b3-blog { font-size: 1.6rem !important; }
  .typo-h4 { font-size: 4.0rem !important; }
  .typo-l2 { font-size: 1.6rem !important; }

  .situation-text {
    grid-column: span 12 !important;
    gap: 4.0rem !important;
    text-align: justify !important;
    align-items: center !important;
    width: 100% !important;
  }
  .situation-text p {
    text-align: justify !important;
    text-align-last: left !important;
  }

  .brief-image-wrap {
    grid-column: 1 / span 12 !important;
    height: auto !important;
    margin-top: 4.0rem !important;
    margin-bottom: 0 !important;
    padding-bottom: 7.2rem !important;
  }

  .brief-image-wrap .ph-block {
    height: auto !important;
    aspect-ratio: 689.72 / 450.6 !important;
  }

  .work-row {
    grid-column: span 12 !important;
    margin-bottom: 0 !important;
  }

  .work-row:first-of-type {
    padding-top: 6.0rem !important;
    padding-bottom: 8.0rem !important;
  }

  .work-row:last-of-type {
    padding-top: 7.2rem !important;
    padding-bottom: 7.2rem !important;
  }

  .work-gallery-3grid {
    grid-template-columns: repeat(10, 1fr) !important;
    grid-template-rows: repeat(2, 1fr) !important;
    gap: 1.6rem !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 689.72 / 464 !important;
  }

  .work-grid-img-large {
    grid-column: span 5 !important;
    grid-row: span 2 !important;
  }

  .work-grid-img-small {
    grid-column: 6 / span 5 !important;
  }

  .output-container {
    grid-column: 1 / span 12 !important;
  }

  .output-title {
    grid-column: 1 / span 5 !important;
  }

  .output-desc {
    grid-column: 7 / span 6 !important;
  }

  .output-gallery-2col {
    grid-column: 1 / span 12 !important;
    grid-template-columns: repeat(12, 1fr) !important;
    column-gap: var(--gap-inner-desktop) !important;
    padding-top: 4.0rem !important;
    padding-bottom: 7.2rem !important;
    margin-bottom: 0 !important;
  }

  .output-gallery-left {
    grid-column: span 7 !important;
    height: auto !important;
    aspect-ratio: 411.67 / 376.8 !important;
  }

  .output-gallery-left .ph-block {
    height: 100% !important;
    width: 100% !important;
  }

  .output-gallery-right {
    grid-column: span 5 !important;
    height: auto !important;
    aspect-ratio: 288.33 / 376.8 !important;
  }

  .output-gallery-right .ph-block {
    height: 100% !important;
    width: 100% !important;
  }

  .result-section-wrap {
    grid-column: 1 / span 12 !important;
    display: grid !important;
    grid-template-columns: repeat(12, 1fr) !important;
    row-gap: 7.2rem !important;
    padding-bottom: 7.2rem !important;
  }

  .result-left {
    grid-column: 1 / span 5 !important;
    display: block !important;
  }

  .result-left h2 {
    margin: 0 !important;
  }

  .result-right {
    grid-column: 7 / span 6 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3.2rem !important;
    align-items: start !important;
  }

  .quote-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 38.4rem !important;
    padding: 3.2rem !important;
    box-sizing: border-box !important;
  }

  .quote-header {
    display: flex !important;
    flex-direction: column !important;
    gap: 3.2rem !important;
  }

  .quote-citation {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.2rem !important;
    align-self: flex-start !important;
  }

  .cta-fluid-section {
    padding: 7.2rem 2.4rem !important;
  }

  .cta-fluid-container {
    grid-column: 1 / span 12 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4.8rem !important;
  }


  .case-studies-section {
    padding: 7.2rem 2.4rem !important;
  }

  .case-studies-header {
    grid-column: 1 / span 12 !important;
    padding-bottom: 2.0rem !important;
    margin-bottom: 4.0rem !important;
  }

  .case-studies-grid {
    grid-column: 1 / span 12 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 2.0rem !important;
    row-gap: 4.0rem !important;
  }

  .case-studies-grid .work-thumb {
    height: auto !important;
    aspect-ratio: 478 / 312 !important;
  }

}







@media (max-width: 767px) {
  html {
    font-size: max(9.16666px, 2.41546vw) !important; /* Fluid scalable root font size, capping smallest text at 11px */
  }



  /* Do not scale Navbar (lock to static px dimensions) */
  .nav {
    height: 64px !important;
    padding: 0 16px !important;
  }

  .nav .logo img {
    height: 32px !important;
  }

  .nav-trigger {
    width: 48px !important;
    height: 48px !important;
    padding: 0 16px !important;
  }

  .nav-trigger-bars {
    width: 22px !important;
    height: 14px !important;
  }

  .nav-trigger-bars i {
    height: 1.5px !important;
  }

  /* Do not scale Fullscreen Menu Overlay (lock to static px dimensions) */
  .m-head {
    height: 64px !important;
    padding: 0 16px !important;
  }

  .m-head .logo img {
    height: 32px !important;
  }

  .m-meta {
    gap: 14px !important;
  }

  .m-meta span {
    font-size: 11px !important;
    letter-spacing: 0.72px !important;
  }

  .m-close {
    width: 24px !important;
    height: 24px !important;
    font-size: 11px !important;
    border-width: 1px !important;
  }

  .m-list {
    min-height: 250px !important;
    border-bottom-width: 1px !important;
  }

  .m-list a {
    min-height: 50px !important;
    padding: 0 16px !important;
    gap: 24px !important;
    font-size: 32px !important;
    border-bottom-width: 1px !important;
  }

  .m-list a:hover {
    padding-left: 16px !important;
  }

  .m-list a .m-num {
    font-size: 15px !important;
    margin-right: 8px !important;
  }

  .m-aside {
    min-height: 300px !important;
    padding: 24px 16px !important;
    gap: 24px !important;
  }

  .m-block {
    gap: 8px 12px !important;
  }

  .m-block h4 {
    font-size: 11px !important;
  }

  .m-block p,
  .m-block a {
    font-size: 13px !important;
  }

  .m-cta {
    height: 56px !important;
    padding: 0 25px !important;
    font-size: 15px !important;
  }

  .m-cta .m-cta-arr {
    width: 32px !important;
    height: 32px !important;
    font-size: 12.5px !important;
  }

  .m-foot {
    padding: 16px !important;
    font-size: 11px !important;
  }



  .mobile-br {
    display: block !important;
  }

  .desktop-tablet-br {
    display: none !important;
  }

  :root {
    --page-inset: 1.6rem !important;
  }

  /* Core fluid-grid collapse on mobile */
  .fluid-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    column-gap: 1.6rem !important;
    row-gap: 0 !important;
  }

  /* Core sections container side padding */
  .case-section {
    padding-left: var(--page-inset) !important;
    padding-right: var(--page-inset) !important;
  }

  /* Hero Header Override */
  .hero-header {
    padding: 4.0rem var(--page-inset) 0 !important;
  }

  .action-bar {
    padding: 1.8rem var(--page-inset) 1.9rem !important;
    gap: 2.4rem !important;
    flex-wrap: wrap !important;
    border-bottom: 1px solid var(--rule-soft) !important;
  }

  .tags-list {
    flex-wrap: wrap !important;
  }

  .hero-index {
    grid-column: 1 / span 2 !important;
    grid-row: 1 !important;
  }

  .hero-content {
    grid-column: 1 / span 6 !important;
    grid-row: 2 !important;
    padding-top: 1.5rem !important;
    gap: 2.0rem !important;
  }

  .hero-image-wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 4.0rem 0 0 !important;
    padding: 0 !important;
    height: auto !important;
    aspect-ratio: 1920 / 1080 !important;
    overflow: hidden !important;
  }

  .hero-image-wrap .ph-block {
    width: 100% !important;
    height: 100% !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }

  /* Situation Mobile Section */
  #situation {
    position: relative !important;
    height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: var(--page-inset) !important;
    padding-right: var(--page-inset) !important;
  }

  .situation-scroll-helper {
    display: block !important;
    height: 120vh !important;
  }

  .situation-sticky-wrapper {
    position: sticky !important;
    top: 10dvh !important;
    height: 80vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .situation-text {
    grid-column: 1 / span 6 !important;
    font-size: 2.0rem !important; /* Scaled down statement display copy */
    line-height: 1.25 !important;
    text-align: justify !important;
    align-items: center !important;
    width: 100% !important;
  }
  .situation-text p {
    text-align: justify !important;
    text-align-last: left !important;
  }

  /* Brief Mobile Section */
  #brief {
    padding: 4.0rem var(--page-inset) 0 !important;
  }

  #brief .fluid-grid {
    row-gap: 1.6rem !important;
  }

  .brief-title {
    grid-column: 1 / span 6 !important;
  }

  .brief-desc {
    grid-column: 1 / span 6 !important;
  }

  .brief-image-wrap {
    grid-column: 1 / span 6 !important;
    padding: 2.4rem 0 5.6rem !important;
    margin-top: 0 !important;
    border-bottom: 1px solid var(--rule-soft) !important;
    height: auto !important;
    width: 100% !important;
    aspect-ratio: auto !important;
  }

  .brief-image-wrap .ph-block {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 690 / 450 !important;
  }

  /* Process Mobile Section */
  #process {
    padding: 5.6rem var(--page-inset) 0 !important;
    height: auto !important; /* Override homepage style.css 250vh height */
  }

  #process .brief-title {
    grid-column: 1 / span 6 !important;
  }

  /* Process Subsections block */
  .work-row {
    grid-column: 1 / span 6 !important;
  }

  .work-row:first-of-type {
    display: grid !important;
    row-gap: 1.2rem !important;
    padding: 2.4rem 0 5.6rem !important;
    border-bottom: 1px solid var(--rule-soft) !important;
  }

  .work-row-intro {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.2rem !important;
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  .work-row-title {
    width: 100% !important;
    max-width: none !important;
  }

  .work-row-desc {
    width: 100% !important;
    max-width: none !important;
  }

  .work-row-gallery-2col {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.6rem !important;
    padding-top: 1.2rem !important;
    width: 100% !important;
  }

  .work-gallery-left {
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2.4rem !important; /* Spacing between Image 1 and text desc */
  }

  .work-gallery-left .ph-block {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 382 / 380 !important;
  }

  .work-gallery-right {
    width: 100% !important;
    height: auto !important;
  }

  .work-gallery-right .ph-block {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 382 / 369 !important;
  }

  /* Website Design block */
  .work-row:last-of-type {
    padding: 4.8rem 0 !important;
    border-bottom: 1px solid var(--rule-soft) !important;
  }

  .work-gallery-3grid-wrap {
    width: 100% !important;
    padding: 2.4rem 0 !important; /* py-24px in Figma */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .work-gallery-3grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.6rem !important;
    width: 100% !important;
    aspect-ratio: auto !important;
  }

  .work-grid-img-large {
    width: 100% !important;
    height: auto !important;
  }

  .work-grid-img-large .ph-block {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 352 / 464 !important;
  }

  .work-grid-img-small {
    width: 100% !important;
    height: auto !important;
  }

  .work-grid-img-small .ph-block {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 352 / 224 !important;
  }

  .work-row:last-of-type > .work-row-intro:last-of-type {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.6rem !important;
    margin-top: 0 !important;
    width: 100% !important;
  }

  .work-row:last-of-type > .work-row-intro:last-of-type p {
    width: 100% !important;
  }

  /* Output Section */
  #output {
    padding: 4.8rem var(--page-inset) 0 !important;
  }

  .output-container {
    grid-column: 1 / span 6 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .output-header {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.6rem !important;
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .output-title {
    width: 100% !important;
  }

  .output-desc {
    width: 100% !important;
  }

  .output-gallery-2col {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.6rem !important;
    padding: 2.4rem 0 4.8rem !important;
    border-bottom: 1px solid var(--rule-soft) !important;
    width: 100% !important;
  }

  .output-gallery-left {
    width: 100% !important;
    aspect-ratio: auto !important;
  }

  .output-gallery-left .ph-block {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 411.67 / 376.8 !important;
  }

  .output-gallery-right {
    width: 100% !important;
    aspect-ratio: auto !important;
  }

  .output-gallery-right .ph-block {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 288.33 / 376.8 !important;
  }

  /* Results Section */
  #results {
    padding: 4.8rem var(--page-inset) 0 !important;
  }

  .result-section-wrap {
    grid-column: 1 / span 6 !important;
    padding-bottom: 4.8rem !important;
    border-bottom: 1px solid var(--rule-soft) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.6rem !important;
  }

  .result-left {
    width: 100% !important;
  }

  #results h2 {
    margin-bottom: 0 !important;
  }

  .result-right {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2.4rem !important;
  }

  .result-right .nav-cta {
    margin-top: 0 !important;
    width: 100% !important;
  }

  .quote-card {
    padding: 2.4rem !important;
    gap: 7.3rem !important;
    background: var(--bg) !important;
    border: 1px solid var(--rule) !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .quote-header {
    display: flex !important;
    flex-direction: column !important;
    gap: 3.2rem !important;
  }

  .quote-card blockquote {
    font-size: 2.0rem !important;
    line-height: 1.15 !important;
  }

  .quote-citation {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
  }

  /* CTA Section Override */
  .cta-fluid-section {
    padding: 5.6rem var(--page-inset) !important;
  }

  .cta-fluid-container {
    grid-column: 1 / span 6 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3.2rem !important;
    text-align: center !important;
  }

  .cta-fluid-container h2 {
    font-size: 3.6rem !important;
    line-height: 1.1 !important;
    letter-spacing: -0.04em !important;
    max-width: none !important;
    text-align: center !important;
  }

  .cta-fluid-container .btn-primary {
    width: 100% !important;
    height: 5.6rem !important;
  }

  /* Case Studies Section Override */
  .case-studies-section {
    padding: 5.6rem var(--page-inset) !important;
  }

  .case-studies-header {
    grid-column: 1 / span 6 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
    width: 100% !important;
  }

  .case-studies-header h2 {
    font-size: 2.8rem !important;
    line-height: 1.1 !important;
    letter-spacing: -0.015em !important;
  }

  .case-studies-header .back-to-top-btn {
    font-size: 1.4rem !important;
    margin-bottom: 0 !important;
  }

  .case-studies-grid {
    grid-column: 1 / span 6 !important;
    padding-top: 3.2rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.6rem !important;
  }

  .case-studies-grid .work-thumb {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 522 / 368 !important;
  }

  .case-studies-grid .work-card {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    flex-shrink: 1 !important;
  }

  /* Typography Scales on Mobile */
  .typo-d1-b { font-size: 4.4rem !important; line-height: 1.1 !important; letter-spacing: -0.06em !important; }
  .typo-d2-b { font-size: 3.0rem !important; line-height: 1.1 !important; letter-spacing: -0.04em !important; }
  .typo-d3-b { font-size: 2.8rem !important; line-height: 1.05 !important; letter-spacing: -0.025em !important; }
  .typo-h2-b { font-size: 2.4rem !important; line-height: 1.1 !important; letter-spacing: -0.02em !important; }
  .typo-h3-b { font-size: 2.0rem !important; line-height: 1.15 !important; letter-spacing: -0.015em !important; }
  .typo-h4-b { font-size: 1.8rem !important; line-height: 1.2 !important; letter-spacing: -0.01em !important; }
  .typo-b3-blog { font-size: 1.5rem !important; line-height: 1.5 !important; }
  .typo-b4-blog { font-size: 1.3rem !important; line-height: 1.5 !important; }
  .typo-l2-blog { font-size: 1.4rem !important; line-height: 1.2 !important; letter-spacing: 0.03em !important; }
  .typo-l3-blog { font-size: 1.2rem !important; line-height: 1.2 !important; letter-spacing: 0.04em !important; }
  .typo-l5-blog { font-size: 1.2rem !important; line-height: 1.3 !important; letter-spacing: 0.06em !important; }
}

/* Scroll reveal text animations */
.scroll-char {
  display: inline;
  opacity: 0.3;
  will-change: opacity;
}

