/* =========================================================
                         CAE.CSS
   Shared by:
   - 04_CAE.html
   - All individual CAE project pages

   Uses the same class system across the CAE section.
========================================================= */

/* =========================================================
                    CATEGORY PROJECT PAGES
========================================================= */

.category-page {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
  font-family: Helvetica, Arial, sans-serif;
  color: #111;
}

/* PAGE INTRO */
.category-intro {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 0 36px;
  text-align: center;
}
.category-kicker { margin: 0 0 18px; font-size: 11px; font-weight: 400; letter-spacing: 5px; color: #777; }
.category-intro h1 { margin: 0; font-size: clamp(52px, 6vw, 82px); font-weight: 300; line-height: 1; letter-spacing: -2px; color: #111; }
.category-title-line { width: 130px; height: 2px; margin: 20px auto 24px; background: var(--accent, #8a3038); }
.category-description { max-width: 620px; margin: 0 auto; font-size: 13px; line-height: 1.8; letter-spacing: 1px; color: #777; }

/* GRID */
.category-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 52px;
  padding: 42px 0 80px;
  border-top: 1px solid #ddd;
}

/* CARD */
.category-project-card { position: relative; display: block; min-width: 0; color: inherit; text-decoration: none; }
.category-project-line { width: 100%; height: 2px; margin-bottom: 14px; background: var(--accent, #8a3038); }
.category-project-heading { min-height: 72px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.category-project-card h2 { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.25; letter-spacing: 0.4px; }
.category-project-type { margin: 7px 0 18px; font-size: 10px; line-height: 1.5; letter-spacing: 1.5px; color: #777; }
.category-project-image { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #f2f2f2; }
.category-project-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 0.35s ease, filter 0.35s ease; }
.category-project-card:hover .category-project-image img { transform: scale(1.025); filter: brightness(0.88); }

/* COMING SOON */
.coming-soon-badge { flex-shrink: 0; padding: 5px 7px; border: 1px solid var(--accent, #8a3038); font-size: 8px; font-weight: 500; letter-spacing: 1.4px; color: var(--accent, #8a3038); }
.category-project-card.coming-soon { cursor: default; }
.category-project-card.coming-soon .category-project-image::after { content: "COMING SOON"; position: absolute; left: -8%; top: 50%; width: 116%; padding: 10px 0; transform: translateY(-50%) rotate(-5deg); background: rgba(255,255,255,.9); border-top: 1px solid var(--accent, #8a3038); border-bottom: 1px solid var(--accent, #8a3038); text-align: center; font-size: 10px; font-weight: 500; letter-spacing: 3px; color: var(--accent, #8a3038); }

/* CLOSING */
.category-closing { padding: 0 0 55px; text-align: center; }
.category-closing p { margin: 0; font-size: 10px; letter-spacing: 5px; color: #777; }
.category-closing div { width: 45px; height: 2px; margin: 16px auto 0; background: var(--accent, #8a3038); }

/* RESPONSIVE */
@media (max-width: 1000px) { .category-page { width: calc(100% - 50px); } .category-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .category-page { width: calc(100% - 28px); } .category-intro { padding: 42px 0 32px; } .category-kicker { font-size: 10px; letter-spacing: 4px; } .category-intro h1 { font-size: clamp(44px, 11vw, 62px); } .category-description { font-size: 12px; } }
@media (max-width: 620px) { .category-projects { grid-template-columns: 1fr; row-gap: 40px; padding-bottom: 64px; } .category-project-heading { min-height: 0; } }


/* =========================================================
        CAE INDIVIDUAL PROJECT / CASE STUDY PAGES
   Shared by all CAE category and CAE project pages
========================================================= */

/* =========================================================
                   INDIVIDUAL PROJECT PAGE
========================================================= */

.project-detail-page {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
  font-family: Helvetica, Arial, sans-serif;
  color: #111;
}

.project-back-link {
  display: inline-block;
  margin-top: 34px;
  color: #777;
  text-decoration: none;
  font-size: 9px;
  letter-spacing: 1.8px;
  transition: color .2s ease;
}

.project-back-link:hover {
  color: var(--accent, #8a3038);
}


/* =========================================================
                         HERO
========================================================= */

.project-hero {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  padding: 42px 0 64px;
  border-bottom: 1px solid #ddd;
}

.project-eyebrow {
  margin: 0 0 18px;
  font-size: 10px;
  letter-spacing: 3px;
  color: #777;
}

.project-hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -2px;
}

.project-hero-line {
  width: 72px;
  height: 2px;
  margin: 20px 0 22px;
  background: var(--accent, #8a3038);
}

.project-lead {
  max-width: 610px;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #555;
}

.project-tools {
  margin: 26px 0 0;
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #777;
}

.project-hero-media {
  margin: 0;
}

.project-hero-media img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

.project-hero-media figcaption,
.project-detail-page figcaption {
  margin-top: 10px;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: .8px;
  color: #777;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
}

.project-metric {
  padding: 0 18px;
  border-left: 1px solid #ddd;
}

.project-metric:first-child {
  padding-left: 0;
  border-left: 0;
}

.project-metric strong {
  display: block;
  color: var(--accent, #8a3038);
  font-size: 24px;
  font-weight: 500;
}

.project-metric span {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #777;
}


/* =========================================================
                        SECTIONS
========================================================= */

.project-section {
  padding: 64px 0;
  border-bottom: 1px solid #ddd;
}

.project-section-split {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(46px, 7vw, 100px);
  align-items: start;
}

.project-section-copy p,
.project-section-intro,
.project-section-note,
.project-analysis-grid p,
.material-layout p,
.project-result p {
  font-size: 13px;
  line-height: 1.8;
  color: #555;
}

.project-section-number {
  margin: 0 0 10px !important;
  color: var(--accent, #8a3038) !important;
  font-size: 10px !important;
  font-weight: 500;
  letter-spacing: 1.5px;
}

.project-section h2,
.project-analysis-grid h2 {
  position: relative;
  margin: 0 0 24px;
  padding-bottom: 12px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .8px;
}

.project-section h2::after,
.project-analysis-grid h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: var(--accent, #8a3038);
}

.project-section-heading {
  margin-bottom: 30px;
}

.project-section-heading h2 {
  margin-bottom: 0;
}

.project-constraint-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.project-constraint-list span {
  padding-top: 10px;
  border-top: 1px solid #ddd;
  font-size: 10px;
  letter-spacing: 1px;
  color: #555;
}


/* =========================================================
                          MEDIA
========================================================= */

.project-media-grid {
  display: grid;
  gap: 22px;
}

.project-media-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-detail-page figure {
  margin: 0;
}

.project-detail-page figure img {
  width: 100%;
  display: block;
  background: #f2f2f2;
}

.project-feature-media img,
.project-wide-media img {
  max-height: 540px;
  object-fit: contain;
}


/* =========================================================
                       METHODOLOGY
========================================================= */

.project-methodology {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr)
    auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.method-step {
  min-height: 120px;
  padding: 18px;
  background: #f6f6f6;
}

.method-step span {
  display: block;
  margin-bottom: 20px;
  color: var(--accent, #8a3038);
  font-size: 9px;
  letter-spacing: 1px;
}

.method-step strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
}

.method-step small {
  display: block;
  margin-top: 6px;
  color: #777;
  font-size: 9px;
  line-height: 1.4;
}

.method-arrow {
  align-self: center;
  color: #aaa;
  font-size: 18px;
}

.project-section-note {
  max-width: 820px;
  margin: 28px 0 0;
}


/* =========================================================
                         HIGHLIGHT
========================================================= */

.project-highlight {
  margin-top: 28px;
  padding-left: 18px;
  border-left: 2px solid var(--accent, #8a3038);
}

.project-highlight strong {
  display: block;
  font-size: 23px;
  font-weight: 400;
}

.project-highlight span {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #777;
}


/* =========================================================
                         ITERATION
========================================================= */

.iteration-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.iteration-stats div {
  padding: 20px;
  border-left: 1px solid #ddd;
}

.iteration-stats div:first-child {
  border-left: 0;
}

.iteration-stats span {
  display: block;
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #777;
}

.iteration-stats strong {
  display: block;
  margin-top: 7px;
  font-size: 19px;
  font-weight: 500;
}


/* =========================================================
                    DYNAMIC / VALIDATION
========================================================= */

.project-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.project-analysis-grid article {
  padding: 64px 50px 64px 0;
}

.project-analysis-grid article + article {
  padding-left: 50px;
  padding-right: 0;
  border-left: 1px solid #ddd;
}

.project-analysis-grid figure {
  margin-top: 24px;
}

.validation-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
}

.validation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.validation-table th,
.validation-table td {
  padding: 12px 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.validation-table th {
  font-weight: 500;
  letter-spacing: .8px;
  background: #f7f7f7;
}

.validation-table td:last-child {
  color: var(--accent, #8a3038);
  font-weight: 500;
}

.project-footnote {
  margin-top: 14px !important;
  font-size: 9px !important;
  color: #777 !important;
}


/* =========================================================
                        MATERIALS
========================================================= */

.material-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
}

.project-quote {
  margin-top: 26px;
  padding: 18px 0;
  border-top: 1px solid var(--accent, #8a3038);
  border-bottom: 1px solid var(--accent, #8a3038);
  color: var(--accent, #8a3038);
  font-size: 13px;
  letter-spacing: 2px;
}

.material-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #ddd;
  border: 1px solid #ddd;
}

.material-options span {
  padding: 22px;
  background: #fff;
  font-size: 9px;
  letter-spacing: 1.3px;
}


/* =========================================================
                        FINAL RESULT
========================================================= */

.project-result {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 60px;
  align-items: end;
}

.project-result-number {
  text-align: right;
}

.project-result-number strong {
  display: block;
  color: var(--accent, #8a3038);
  font-size: clamp(54px, 7vw, 92px);
  font-weight: 300;
  letter-spacing: -3px;
}

.project-result-number span {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 2px;
  color: #777;
}


/* =========================================================
                     KEY TAKEAWAYS + REFLECTION
========================================================= */

.project-key-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: stretch;
}

.project-key-list {
  display: grid;
  gap: 28px;
}

.project-key-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 18px;
  align-items: start;
}

.project-key-item > span {
  color: var(--accent, #8a3038);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
}

.project-key-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
}

.project-key-item p {
  max-width: 430px;
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
  color: #777;
}

.project-reflection {
  margin: 0;
  padding: 42px 44px;
  background: #f3f3f3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  border: 0;
}

.project-reflection-line {
  width: 34px;
  height: 2px;
  margin-bottom: 24px;
  background: var(--accent, #8a3038);
}

.project-reflection p {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.75;
  color: #555;
}


/* =========================================================
                      PAGINATION
========================================================= */

.project-pagination {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 36px 0 64px;
}

.project-pagination a {
  color: #111;
  text-decoration: none;
  font-size: 9px;
  letter-spacing: 1.5px;
  transition: color .2s ease;
}

.project-pagination a:hover {
  color: var(--accent, #8a3038);
}


/* =========================================================
                      SCROLL REVEAL
========================================================= */

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity .65s ease,
    transform .65s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
                        RESPONSIVE
========================================================= */

@media (max-width: 1000px) {
  .project-detail-page {
    width: calc(100% - 48px);
  }

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

  .project-hero-media {
    max-width: 720px;
  }

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

  .project-methodology {
    grid-template-columns: repeat(3, 1fr);
  }

  .method-arrow {
    display: none;
  }

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

  .project-analysis-grid article {
    padding: 54px 0;
  }

  .project-analysis-grid article + article {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid #ddd;
  }
}

@media (max-width: 700px) {

  .project-key-section {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .project-reflection {
    padding: 32px;
  }

  .project-detail-page {
    width: calc(100% - 28px);
  }

  .project-hero {
    padding-top: 30px;
  }

  .project-metrics {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }

  .project-metric:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .project-section {
    padding: 48px 0;
  }

  .project-media-grid-2,
  .material-layout,
  .project-result,
  .project-key-section {
    grid-template-columns: 1fr;
  }

  .project-methodology {
    grid-template-columns: repeat(2, 1fr);
  }

  .iteration-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .iteration-stats div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #ddd;
  }

  .iteration-stats div:nth-child(4) {
    border-top: 1px solid #ddd;
  }

  .project-result-number {
    text-align: left;
  }
}


/* =========================================================
                   COMPACT CAE CASE STUDY LAYOUT
   Poster-like density without sacrificing readability.
========================================================= */

.project-detail-page {
  width: min(1320px, calc(100% - 72px));
}

.project-back-link {
  margin-top: 22px;
}

.project-hero {
  gap: clamp(36px, 5vw, 70px);
  padding: 28px 0 40px;
}

.project-hero h1 {
  font-size: clamp(40px, 4.7vw, 66px);
}

.project-hero-line {
  margin: 16px 0 18px;
}

.project-lead {
  line-height: 1.62;
}

.project-metrics {
  margin-top: 24px;
}

.project-tools {
  margin-top: 20px;
}

.project-hero-media img {
  max-height: 390px;
}

.project-section {
  padding: 38px 0;
}

.project-section-split {
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(34px, 5vw, 68px);
}

.project-section h2,
.project-analysis-grid h2 {
  margin-bottom: 16px;
  padding-bottom: 9px;
  font-size: 18px;
}

.project-section-copy p,
.project-section-intro,
.project-section-note,
.project-analysis-grid p,
.project-key-item p {
  line-height: 1.65;
}

.project-section-heading {
  margin-bottom: 20px;
}

.project-constraint-list {
  margin-top: 18px;
  gap: 7px;
}

.project-constraint-list span {
  padding-top: 7px;
}

.challenge-visuals,
.project-media-grid {
  gap: 16px;
}

.challenge-image-wrap img,
.project-feature-media img,
.project-wide-media img {
  max-height: 360px;
  object-fit: contain;
}

.project-detail-page figcaption {
  margin-top: 6px;
}

.method-flow,
.project-methodology {
  gap: 7px;
}

.method-node,
.method-step {
  min-height: 92px;
  padding: 13px;
}

.method-node span,
.method-step span {
  margin-bottom: 12px;
}

.project-section-note {
  margin-top: 18px;
}

.project-highlight {
  margin-top: 18px;
}

.project-highlight strong {
  font-size: 21px;
}

.project-wide-media {
  max-width: 1080px;
  margin: 0 auto;
}


/* =========================================================
                 DESIGN ITERATION VISUAL
========================================================= */

.iteration-media {
  width: 100%;
  max-width: none;

  margin: 24px auto 0;

  text-align: center;
}

.iteration-media img {
  display: block;

  width: min(1100px, 95%);
  max-width: none;
  height: auto;
  max-height: none;

  margin: 0 auto;

  object-fit: contain;
}

.iteration-media figcaption {
  width: min(1100px, 95%);

  margin: 10px auto 0;

  text-align: center;

  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 1px;

  color: #777;
}
.optimisation-result {
  margin-top: 20px;
}

.project-analysis-grid {
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0;
  padding: 0;
}

.project-analysis-grid .analysis-panel {
  padding: 38px 38px 38px 0;
}

.project-analysis-grid .analysis-panel + .analysis-panel {
  padding: 38px 0 38px 38px;
  border-left: 1px solid #ddd;
}

.analysis-copy-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: start;
}

.compact-analysis-figure img {
  max-height: 220px;
  object-fit: contain;
}

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

.equation-card {
  padding: 14px 16px;
  background: #f3f3f3;
  border-left: 2px solid var(--accent, #8a3038);
}

.equation-label {
  display: block;
  margin-bottom: 8px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: #777;
}

.equation {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.45;
  color: #222;
}

.equation-small {
  font-size: 14px;
}

.equation-card small {
  display: block;
  margin-top: 8px;
  font-size: 9px;
  letter-spacing: .5px;
  color: #777;
}

.analysis-results-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.analysis-results-row > div {
  padding: 12px 10px;
}

.analysis-results-row > div + div {
  border-left: 1px solid #ddd;
}

.analysis-results-row span {
  display: block;
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #777;
}

.analysis-results-row strong {
  display: block;
  margin-top: 5px;
  font-size: 17px;
  font-weight: 500;
  color: var(--accent, #8a3038);
}

.validation-table-wrap {
  margin-top: 14px;
}

.validation-table th,
.validation-table td {
  padding: 9px 8px;
  font-size: 9px;
}

.project-footnote {
  margin-top: 10px !important;
  line-height: 1.5 !important;
}

.project-key-section {
  grid-template-columns: 1.2fr 0.8fr;
  gap: 42px;
  padding: 38px 0;
}

.project-key-list {
  gap: 19px;
}

.project-key-item {
  grid-template-columns: 30px 1fr;
  gap: 12px;
}

.project-reflection {
  padding: 30px 32px;
}

.project-reflection-line {
  margin-bottom: 16px;
}

.project-reflection p {
  font-size: 13px;
  line-height: 1.65;
}

.project-pagination {
  padding: 26px 0 42px;
}

@media (max-width: 1050px) {
  .project-analysis-grid {
    grid-template-columns: 1fr;
  }

  .project-analysis-grid .analysis-panel,
  .project-analysis-grid .analysis-panel + .analysis-panel {
    padding: 34px 0;
    border-left: 0;
  }

  .project-analysis-grid .analysis-panel + .analysis-panel {
    border-top: 1px solid #ddd;
  }
}

@media (max-width: 760px) {
  .project-detail-page {
    width: calc(100% - 28px);
  }

  .project-section {
    padding: 32px 0;
  }

  .analysis-copy-grid,
  .equation-grid,
  .project-key-section {
    grid-template-columns: 1fr;
  }

  .project-key-section {
    gap: 28px;
  }
}

/* =========================================================
        FINAL CAE CASE STUDY REFINEMENTS
   Hero + Sections 01-04
========================================================= */

/* Remove the generic grey image background from CAE case studies. */
.project-detail-page figure img {
  background: transparent;
}

/* ------------------------- HERO ------------------------- */
.project-hero {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  padding: 48px 0 64px;
}

.project-eyebrow {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
}

.project-hero h1 {
  max-width: 720px;
  font-size: clamp(52px, 5.2vw, 72px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -2px;
}

.project-hero-line {
  margin: 22px 0 24px;
}

.project-lead {
  max-width: 600px;
  font-size: 14px;
  line-height: 1.75;
}

.project-metrics {
  margin-top: 34px;
}

.project-metric strong {
  font-size: 22px;
}

.project-tools {
  margin-top: 28px;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 1.8px;
}

.project-hero-media {
  margin: 0;
  background: transparent;
}

.project-hero-media img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  background: transparent;
}

/* ------------------- 01 / 03 IMAGE LAYOUT ------------------- */
.project-section-split {
  grid-template-columns: 0.65fr 1.35fr;
  gap: 80px;
  align-items: start;
}

.challenge-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

.challenge-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.challenge-image-wrap {
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
}

.challenge-image-wrap img {
  width: 100%;
  height: 100%;
  max-height: none;
  display: block;
  object-fit: contain;
  background: transparent;
}

.challenge-figure figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.8px;
  color: #777;
}

#mesh .challenge-image-wrap {
  height: 390px;
}

/* ------------------- 02 METHODOLOGY FLOW ------------------- */
.method-flow {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto
    minmax(0, 1fr) auto
    minmax(0, 1fr) auto
    minmax(0, 1fr) auto
    minmax(0, 1fr) auto
    minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.method-node {
  min-width: 0;
  min-height: 96px;
  padding: 14px 8px 12px;
  background: transparent;
  border-top: 1px solid #d8d8d8;
}

.method-node span {
  display: block;
  margin-bottom: 18px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: var(--accent, #8a3038);
}

.method-node strong {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: #111;
}

.method-node small {
  display: block;
  font-size: 9px;
  line-height: 1.4;
  color: #777;
}

.method-connector {
  align-self: center;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 300;
  color: var(--accent, #8a3038);
  opacity: 0.7;
}

#methodology .project-section-note {
  max-width: 760px;
  margin: 30px 0 0;
}

/* ------------------- 04 OPTIMISATION RESULT ------------------- */
.optimisation-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
  margin-top: 22px;
  padding: 20px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.optimisation-mass {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.optimisation-mass span,
.optimisation-reduction span {
  display: block;
  margin-bottom: 6px;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #777;
}

.optimisation-mass strong {
  font-size: 18px;
  font-weight: 400;
  color: #111;
}

.optimisation-arrow {
  display: flex;
  align-items: center;
}

.optimisation-arrow span {
  width: 100%;
  height: 1px;
  margin: 0;
  background: #ccc;
}

.optimisation-arrow strong {
  margin-left: -1px;
  font-size: 15px;
  font-weight: 300;
  color: var(--accent, #8a3038);
}

.optimisation-reduction {
  min-width: 110px;
  padding-left: 26px;
  border-left: 1px solid #ddd;
}

.optimisation-reduction strong {
  display: block;
  margin-bottom: 4px;
  font-size: 26px;
  font-weight: 400;
  color: var(--accent, #8a3038);
}

/* ------------------------- RESPONSIVE ------------------------- */
@media (max-width: 1050px) {
  .project-section-split {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .challenge-image-wrap,
  #mesh .challenge-image-wrap {
    height: 320px;
  }

  .method-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 34px;
  }

  .method-connector {
    display: none;
  }
}

@media (max-width: 760px) {
  .project-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 30px 0 42px;
  }

  .project-hero h1 {
    font-size: clamp(44px, 12vw, 60px);
  }

  .challenge-visuals {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .challenge-image-wrap,
  #mesh .challenge-image-wrap {
    height: 270px;
  }

  .method-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .optimisation-result {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .optimisation-reduction {
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid #ddd;
  }
}
.project-wide-media.iteration-media img {
  width: min(1100px, 95%);
  height: auto;
  max-height: none;
  object-fit: contain;
}

/* =========================================================
   COMPOSITE PAGE — COMPACT IMAGE LAYOUT OVERRIDES
========================================================= */


/* ---------------------------------------------------------
   03 — CAE METHODOLOGY
--------------------------------------------------------- */

.cae-methodology-visuals {
  margin-top: 18px;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 32px;

  align-items: start;
}

.cae-methodology-figure {
  margin: 0;

  text-align: center;
}

.cae-methodology-figure .challenge-image-wrap {
  width: 100%;
  height: 190px;
  min-height: 0;

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

  overflow: hidden;
}

.cae-methodology-figure img {
  display: block;

  width: auto;
  max-width: 90%;

  height: 180px;
  max-height: 180px;

  margin: 0 auto;

  object-fit: contain;
}

.cae-methodology-figure figcaption {
  margin: 8px auto 0;

  text-align: center;
}

#methodology .project-section-note {
  margin-top: 18px;
}


/* ---------------------------------------------------------
   05 — MANUFACTURING & TOOLING
--------------------------------------------------------- */

.manufacturing-visuals {
  display: flex;
  flex-direction: column;

  gap: 20px;

  margin: 0;

  align-items: center;
}

.manufacturing-figure {
  width: 100%;

  margin: 0;

  text-align: center;
}

.manufacturing-figure .challenge-image-wrap {
  width: 100%;
  height: auto;
  min-height: 0;

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

.manufacturing-figure img {
  display: block;

  width: 100%;
  max-width: 620px;

  height: auto;
  max-height: 250px;

  margin: 0 auto;

  object-fit: contain;
}

.manufacturing-figure figcaption {
  margin: 8px auto 0;

  text-align: center;
}


/* Keep the manufacturing section vertically compact */

#manufacturing {
  align-items: start;
}

#manufacturing .project-section-copy {
  align-self: start;
}


/* ---------------------------------------------------------
   ALL COMPOSITE FIGURE CAPTIONS
--------------------------------------------------------- */

.project-detail-page figure figcaption {
  width: 100%;

  margin-left: auto;
  margin-right: auto;

  text-align: center;
}

/* =========================================================
   SHARED ACCESSIBILITY / MOTION REFINEMENTS
========================================================= */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent, #8a3038);
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
