/* =========================================================
                        CAE PROJECT PAGE
========================================================= */

.cae-project-page {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
  font-family: Helvetica, Arial, sans-serif;
  color: var(--text-main);
}


/* =========================================================
                     PROJECT HEADER
========================================================= */

.cae-project-header {
  margin: 24px auto 48px;
  text-align: center;
}

.cae-header-border {
  width: 100%;
  height: 1px;
  background: var(--accent);
}

.cae-project-kicker {
  margin: 18px 0 12px;

  /* 10px → 12px */
  font-size: 12px;

  font-weight: 400;
  letter-spacing: 4px;
  color: var(--text-muted);
}

.cae-project-title {
  margin: 0;
  font-size: clamp(44px, 5.3vw, 68px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -2px;
}

.cae-project-title span {
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
}

.cae-project-subtitle {
  max-width: 760px;
  margin: 18px auto 24px;

  /* 11px → 14px */
  font-size: 14px;

  line-height: 1.7;
  letter-spacing: 0.2px;
  color: var(--text-muted);
}


/* =========================================================
                         SECTIONS
========================================================= */

.cae-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.cae-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.cae-section-heading > span {
  /* 9px → 12px */
  font-size: 12px;

  letter-spacing: 1px;
  color: var(--accent);
}

.cae-section-heading h2 {
  margin: 0;

  /* 16px → 18px */
  font-size: 18px;

  font-weight: 500;
  letter-spacing: 0.4px;
}

.cae-section p {
  margin: 0;

  /* 11px → 14px */
  font-size: 14px;

  line-height: 1.7;
  color: #555;
}

.cae-section-intro {
  max-width: 900px;
  margin-bottom: 24px !important;
}

.cae-question {
  margin-bottom: 16px !important;

  /* 17px → 20px */
  font-size: 20px !important;

  font-weight: 300;
  line-height: 1.55 !important;
  color: #222 !important;
}

.cae-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}


/* =========================================================
                       SPECIFICATION
========================================================= */

.cae-spec-list {
  display: grid;
}

.cae-spec-list div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.cae-spec-list div:last-child {
  border-bottom: 1px solid var(--line);
}

.cae-spec-list strong,
.cae-spec-list span {
  /* 10px → 12px */
  font-size: 12px;

  line-height: 1.6;
}

.cae-spec-list strong {
  font-weight: 500;
  letter-spacing: 0.6px;
}

.cae-spec-list span {
  color: #666;
}


/* =========================================================
                         METHODOLOGY
========================================================= */

.cae-method-flow {
  display: grid;
  grid-template-columns:
    1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}

.cae-method-step {
  padding: 18px 16px;
  background: var(--soft);
}

.cae-method-step > span {
  display: block;
  margin-bottom: 8px;

  /* 9px → 12px */
  font-size: 12px;

  color: var(--accent);
}

.cae-method-step strong {
  display: block;
  margin-bottom: 8px;

  /* 10px → 12px */
  font-size: 12px;

  letter-spacing: 0.6px;
}

.cae-method-step p {
  /* 10px → 12px */
  font-size: 12px;

  line-height: 1.6;
}

.cae-method-arrow {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 300;
  color: #999;
}


/* =========================================================
                    ANALYSIS + FIGURES
========================================================= */

.cae-analysis-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.cae-analysis-copy > p {
  margin-bottom: 18px;
}

.cae-figure {
  margin: 0;
  text-align: center;
}

.cae-figure img {
  display: block;
  width: 100%;
  max-height: 360px;
  margin: 0 auto;
  object-fit: contain;
}

.cae-small-figure {
  margin-top: 18px;
}

.cae-small-figure img {
  max-height: 260px;
}

.cae-iteration-figure {
  width: min(1050px, 94%);
  margin: 20px auto 0;
}

.cae-iteration-figure img {
  max-height: none;
  height: auto;
}

.cae-figure figcaption {
  margin-top: 8px;
  text-align: center;

  /* 9px → 12px */
  font-size: 12px;

  letter-spacing: 0.4px;
  line-height: 1.5;
  color: var(--text-muted);
}


/* =========================================================
                           TABLE
========================================================= */

.cae-table-wrap {
  overflow-x: auto;
}

.cae-table {
  width: 100%;
  border-collapse: collapse;

  /* 10px → 12px */
  font-size: 12px;
}

.cae-table th,
.cae-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.cae-table th {
  font-weight: 500;
  background: #f7f7f7;
}


/* =========================================================
                       RESULT STRIP
========================================================= */

.cae-result-strip {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 22px;
  align-items: center;
  margin-top: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cae-result-strip span,
.cae-result-strip strong {
  display: block;
}

.cae-result-strip span {
  margin-bottom: 4px;

  /* 8px → 10px */
  font-size: 10px;

  letter-spacing: 1px;
  color: var(--text-muted);
}

.cae-result-strip strong {
  font-size: 18px;
  font-weight: 400;
}

.cae-result-line {
  height: 1px;
  background: var(--line);
}

.cae-result-major {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.cae-result-major strong {
  color: var(--accent);

  /* 24px retained */
  font-size: 24px;

  font-weight: 300;
}


/* =========================================================
                       EQUATIONS
========================================================= */

.cae-equation {
  margin: 14px 0;
  padding: 14px 16px;
  background: #f6f6f6;
  font-family: Georgia, "Times New Roman", serif;

  /* 15px → 16px */
  font-size: 16px;

  text-align: center;
  color: #333;
}

.cae-equation span {
  margin-left: 6px;
}

.cae-validation-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.cae-validation-results div {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.cae-validation-results span,
.cae-validation-results strong {
  display: block;
}

.cae-validation-results span {
  margin-bottom: 5px;

  /* 8px → 10px */
  font-size: 10px;

  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.cae-validation-results strong {
  /* 14px → 16px */
  font-size: 16px;

  font-weight: 400;
}


/* =========================================================
                       KEY TAKEAWAYS
========================================================= */

.cae-key-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: stretch;
}

.cae-key-list {
  display: grid;
  gap: 18px;
}

.cae-key-list > div {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
}

.cae-key-list > div > span {
  /* 9px → 12px */
  font-size: 12px;

  color: var(--accent);
}

.cae-key-list strong {
  display: block;
  margin-bottom: 6px;

  /* 10px → 12px */
  font-size: 12px;

  letter-spacing: 0.6px;
  color: #222;
}

.cae-key-list p {
  /* 10px → 12px */
  font-size: 12px;
}

.cae-reflection {
  margin: 0;
  padding: 32px 36px;
  background: #f3f3f3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cae-reflection-line {
  width: 34px;
  height: 2px;
  margin-bottom: 20px;
  background: var(--accent);
}

.cae-reflection p {
  margin: 0;

  /* 14px → 16px */
  font-size: 16px;

  font-weight: 300;
  font-style: italic;
  line-height: 1.75;
  color: #555;
}


/* =========================================================
                         NAVIGATION
========================================================= */

.cae-project-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 52px;
}

.cae-project-nav a {
  /* 10px → 12px */
  font-size: 12px;

  letter-spacing: 1.5px;
  color: #555;
  text-decoration: none;
}

.cae-project-nav a:hover {
  color: var(--accent);
}


/* =========================================================
                       SCROLL REVEAL
========================================================= */

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
                         RESPONSIVE
========================================================= */

@media (max-width: 900px) {

  .cae-two-column,
  .cae-analysis-grid,
  .cae-key-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cae-method-flow {
    grid-template-columns: 1fr;
  }

  .cae-method-arrow {
    display: none;
  }
}


@media (max-width: 700px) {

  .cae-project-page {
    width: calc(100% - 32px);
  }

  .cae-project-header {
    margin-bottom: 32px;
  }

  .cae-section {
    padding: 28px 0;
  }

  .cae-project-subtitle {
    font-size: 14px;
  }

  .cae-section p {
    font-size: 14px;
  }

  .cae-spec-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cae-validation-results {
    grid-template-columns: 1fr;
  }

  .cae-result-strip {
    grid-template-columns: 1fr;
  }

  .cae-result-line {
    display: none;
  }

  .cae-result-major {
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}