/* =========================================================
   DESIGN.CSS
   DESIGN PROJECT PAGES
========================================================= */


/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {
    --accent: #8a3038;
  
    --text: #111;
    --muted: #777;
  
    --line: #dddddd;
    --soft: #f5f5f5;
  
    --page-width: 1280px;
  }
  
  
  /* =========================================================
     BASE
  ========================================================= */
  
  * {
    box-sizing: border-box;
  }
  
  
  html {
    scroll-behavior: smooth;
  }
  
  
  body {
    margin: 0;
  
    font-family:
      Helvetica,
      Arial,
      sans-serif;
  
    color: var(--text);
  
    background: #ffffff;
  }
  
  
  img {
    display: block;
  
    max-width: 100%;
  }
  
  
  button {
    font: inherit;
  }
  
  
  /* =========================================================
     MAIN PROJECT CONTAINER
  ========================================================= */
  
  .design-project {
    width:
      min(
        var(--page-width),
        calc(100% - 80px)
      );
  
    margin:
      0
      auto;
  }
  
  
  /* =========================================================
     HERO
  ========================================================= */
  
  .design-hero {
    display: grid;
  
    grid-template-columns:
      0.88fr
      1.12fr;
  
    gap:
      clamp(
        48px,
        7vw,
        104px
      );
  
    align-items: center;
  
    min-height: 650px;
  
    padding:
      64px
      0
      96px;
  }
  
  
  /* =========================
     HERO EYEBROW
  ========================= */
  
  .eyebrow {
    margin: 0;
  
    font-size: 10px;
  
    font-weight: 400;
  
    letter-spacing: 3px;
  
    color: var(--accent);
  }
  
  
  /* =========================
     HERO TITLE
  ========================= */
  
  .design-hero h1 {
    margin:
      18px
      0
      0;
  
    font-size:
      clamp(
        56px,
        6.4vw,
        92px
      );
  
    line-height: 0.9;
  
    font-weight: 300;
  
    letter-spacing: -3px;
  }
  
  
  /* =========================
     ACCENT LINE
  ========================= */
  
  .accent-line {
    width: 72px;
  
    height: 2px;
  
    margin:
      28px
      0
      26px;
  
    background: var(--accent);
  }
  
  
  /* =========================
     HERO DESCRIPTION
  ========================= */
  
  .lead {
    max-width: 530px;
  
    margin: 0;
  
    font-size: 14px;
  
    line-height: 1.8;
  
    color: #666;
  }
  
  
  /* =========================
     HERO META
  ========================= */
  
  .meta {
    display: grid;
  
    grid-template-columns:
      repeat(
        3,
        1fr
      );
  
    gap: 20px;
  
    margin-top: 38px;
  
    padding-top: 22px;
  
    border-top:
      1px
      solid
      var(--line);
  }
  
  
  .meta span {
    display: block;
  
    margin-bottom: 7px;
  
    font-size: 9px;
  
    letter-spacing: 2px;
  
    color: #999;
  }
  
  
  .meta b {
    font-size: 10px;
  
    line-height: 1.5;
  
    font-weight: 500;
  }
  
  
  /* =========================
     HERO IMAGE
  ========================= */
  
  .hero-media {
    margin: 0;
  }
  
  
  .hero-media img {
    width: 100%;
  
    height: 540px;
  
    object-fit: contain;
  }
  
  
  /* =========================================================
     GENERAL PROJECT SECTION
  ========================================================= */
  
  .design-section {
    position: relative;
  
    padding:
      96px
      0;
  
    border-top:
      1px
      solid
      var(--line);
  }
  
  
  /* =========================================================
     LIGHT BACKGROUND SECTION
  ========================================================= */
  
  .tint::before {
    content: "";
  
    position: absolute;
  
    z-index: -1;
  
    inset:
      0
      calc(50% - 50vw);
  
    background: #fafafa;
  }
  
  
  /* =========================================================
     SECTION HEADING
  ========================================================= */
  
  .section-heading {
    display: grid;
  
    grid-template-columns:
      42px
      1fr;
  
    gap: 22px;
  
    margin-bottom: 52px;
  }
  
  
  /* =========================
     SECTION NUMBER
  ========================= */
  
  .section-heading > span {
    margin-top: 1px;
  
    font-size: 10px;
  
    letter-spacing: 1px;
  
    color: var(--accent);
  }
  
  
  /* =========================
     SECTION KICKER
  ========================= */
  
  .section-heading p {
    margin: 0;
  
    font-size: 10px;
  
    font-weight: 400;
  
    letter-spacing: 3px;
  
    color: var(--accent);
  }
  
  
  /* =========================
     SECTION TITLE
  ========================= */
  
  .section-heading h2 {
    max-width: 820px;
  
    margin:
      9px
      0
      0;
  
    font-size:
      clamp(
        30px,
        3vw,
        46px
      );
  
    line-height: 1.05;
  
    font-weight: 300;
  
    letter-spacing: -1.3px;
  }
  
  
  /* =========================================================
     SECTION INTRO
  ========================================================= */
  
  .intro {
    max-width: 720px;
  
    margin:
      -18px
      0
      48px
      64px;
  
    font-size: 13px;
  
    line-height: 1.8;
  
    color: #666;
  }
  
  
  /* =========================================================
     TWO COLUMN LAYOUT
  ========================================================= */
  
  .split {
    display: grid;
  
    grid-template-columns:
      0.78fr
      1.22fr;
  
    gap:
      clamp(
        48px,
        7vw,
        96px
      );
  
    align-items: center;
  }
  
  
  .split.reverse {
    grid-template-columns:
      1.2fr
      0.8fr;
  }
  
  
  /* =========================================================
     BODY COPY
  ========================================================= */
  
  .copy p {
    margin:
      0
      0
      18px;
  
    font-size: 13px;
  
    line-height: 1.85;
  
    color: #666;
  }
  
  
  /* =========================================================
     GENERAL MEDIA
  ========================================================= */
  
  .media {
    margin: 0;
  }
  
  
  .media img {
    width: 100%;
  
    max-height: 580px;
  
    object-fit: contain;
  
    background: #ffffff;
  }
  
  
  .media figcaption {
    margin-top: 12px;
  
    font-size: 9px;
  
    line-height: 1.6;
  
    letter-spacing: 1px;
  
    color: #888;
  }
  
  
  /* =========================================================
     MATLAB / PROCESS STEPS
  ========================================================= */
  
  .steps {
    display: grid;
  
    gap: 16px;
  
    margin-top: 32px;
  
    padding-top: 26px;
  
    border-top:
      1px
      solid
      var(--line);
  }
  
  
  .steps div {
    display: grid;
  
    grid-template-columns:
      34px
      1fr;
  
    gap: 14px;
  
    font-size: 11px;
  
    line-height: 1.65;
  
    color: #666;
  }
  
  
  .steps span {
    font-size: 10px;
  
    color: var(--accent);
  }
  
  
  /* =========================================================
     PICKUP POINT FEATURE
  ========================================================= */
  
  .pickup-feature {
    display: grid;
  
    grid-template-columns:
      1.25fr
      0.75fr;
  
    gap: 64px;
  
    align-items: center;
  
    margin-top: 72px;
  
    padding-top: 64px;
  
    border-top:
      1px
      solid
      var(--line);
  }
  
  
  .pickup-feature .media img {
    height: 520px;
  
    object-fit: contain;
  }
  
  
  .mini {
    margin: 0;
  
    font-size: 10px;
  
    letter-spacing: 3px;
  
    color: var(--accent);
  }
  
  
  .pickup-feature h3 {
    margin:
      10px
      0
      18px;
  
    font-size: 24px;
  
    line-height: 1.15;
  
    font-weight: 300;
  }
  
  
  .pickup-feature > div > p:last-child {
    margin: 0;
  
    font-size: 12px;
  
    line-height: 1.8;
  
    color: #666;
  }
  
  
  /* =========================================================
     ENGINEERING GRAPH GRID
  ========================================================= */
  
  .graph-grid {
    display: grid;
  
    grid-template-columns:
      repeat(
        2,
        1fr
      );
  
    gap:
      52px
      34px;
  
    margin-left: 64px;
  }
  
  
  .graph-grid figure {
    margin: 0;
  }
  
  
  .graph-grid img {
    width: 100%;
  
    aspect-ratio:
      16 / 10;
  
    object-fit: contain;
  
    border:
      1px
      solid
      #ededed;
  
    background: #fff;
  }
  
  
  .graph-grid figcaption {
    display: grid;
  
    gap: 6px;
  
    margin-top: 14px;
  }
  
  
  .graph-grid b {
    font-size: 10px;
  
    font-weight: 500;
  
    letter-spacing: 1.5px;
  }
  
  
  .graph-grid figcaption span {
    font-size: 10px;
  
    line-height: 1.6;
  
    color: #888;
  }
  
  
  /* =========================================================
     COMPONENT GRID
  ========================================================= */
  
  .component-grid {
    display: grid;
  
    grid-template-columns:
      repeat(
        3,
        1fr
      );
  
    gap: 28px;
  
    margin-left: 64px;
  }
  
  
  .component-grid figure {
    margin: 0;
  }
  
  
  .component-grid img {
    width: 100%;
  
    aspect-ratio:
      4 / 3;
  
    object-fit: contain;
  
    background: #fff;
  }
  
  
  .component-grid figcaption {
    display: grid;
  
    gap: 5px;
  
    margin-top: 14px;
  }
  
  
  .component-grid b {
    font-size: 10px;
  
    font-weight: 500;
  
    letter-spacing: 1.5px;
  }
  
  
  .component-grid figcaption span {
    font-size: 10px;
  
    line-height: 1.6;
  
    color: #888;
  }
  
  
  /* =========================================================
     DESIGN DECISION GRID
  ========================================================= */
  
  .decision-grid {
    display: grid;
  
    grid-template-columns:
      1.25fr
      0.75fr;
  
    gap: 32px;
  
    margin-left: 64px;
  }
  
  
  .decision-grid figure {
    margin: 0;
  }
  
  
  .decision-large {
    grid-row:
      span 2;
  }
  
  
  .decision-grid img {
    width: 100%;
  
    height: 270px;
  
    object-fit: contain;
  
    background: #fff;
  }
  
  
  .decision-large img {
    height: 610px;
  }
  
  
  .decision-grid figcaption {
    display: grid;
  
    gap: 5px;
  
    margin-top: 14px;
  }
  
  
  .decision-grid b {
    font-size: 10px;
  
    font-weight: 500;
  
    letter-spacing: 1.5px;
  }
  
  
  .decision-grid figcaption span {
    font-size: 10px;
  
    line-height: 1.6;
  
    color: #888;
  }
  
  
  /* =========================================================
     ENGINEERING DRAWING SECTION
  ========================================================= */
  
  .drawing-section {
    overflow: hidden;
  }
  
  
  /* =========================================================
     DRAWING INTRO
  ========================================================= */
  
  .drawing-intro {
    max-width: 720px;
  
    margin:
      -12px
      0
      36px
      64px;
  }
  
  
  .drawing-intro > p {
    margin: 0;
  
    font-size: 12px;
  
    line-height: 1.8;
  
    color: #666;
  }
  
  
  /* =========================================================
     DRAWING GALLERY
  ========================================================= */
  
  .drawing-gallery {
    position: relative;
  
    margin-left: 64px;
  
    padding:
      0
      46px;
  
    outline: none;
  }
  
  
  /* =========================================================
     DRAWING STAGE
  
     IMPORTANT:
     The stage contains BOTH:
     1. drawing image area
     2. fixed caption area
  
     This prevents any caption/image overlap.
  ========================================================= */
  
  .drawing-gallery-stage {
    position: relative;
  
    width: 100%;
  
    height: 700px;
  
    overflow: hidden;
  
    border-top:
      1px
      solid
      var(--accent);
  
    background: #ffffff;
  }
  
  
  /* =========================================================
     DRAWING SLIDE
  ========================================================= */
  
  .drawing-gallery-slide {
    position: absolute;
  
    inset: 0;
  
    display: grid;
  
    /*
      Main image receives all remaining room.
      Caption ALWAYS gets 58px.
    */
  
    grid-template-rows:
      minmax(0, 1fr)
      58px;
  
    margin: 0;
  
    padding:
      12px
      0
      0;
  
    opacity: 0;
  
    visibility: hidden;
  
    pointer-events: none;
  
    transform:
      translateX(18px);
  
    transition:
      opacity 0.5s ease,
      transform 0.5s ease,
      visibility 0.5s ease;
  }
  
  
  /* =========================
     ACTIVE DRAWING
  ========================= */
  
  .drawing-gallery-slide.active {
    opacity: 1;
  
    visibility: visible;
  
    pointer-events: auto;
  
    transform:
      translateX(0);
  }
  
  
  /* =========================================================
     DRAWING IMAGE
  
     The image is ONLY allowed inside the first grid row.
  ========================================================= */
  
  .drawing-gallery-slide img {
    grid-row: 1;
  
    width: 100%;
  
    height: 100%;
  
    min-width: 0;
  
    min-height: 0;
  
    padding:
      0
      8px
      10px;
  
    object-fit: contain;
  
    object-position: center;
  }
  
  
  /* =========================================================
     DRAWING CAPTION
  
     This has its OWN RESERVED ROW.
     It cannot overlap the drawing.
  ========================================================= */
  
  .drawing-gallery-slide figcaption {
    grid-row: 2;
  
    display: grid;
  
    grid-template-columns:
      40px
      1fr;
  
    gap: 14px;
  
    align-items: center;
  
    width: 100%;
  
    min-height: 58px;
  
    margin: 0;
  
    padding:
      0
      0;
  
    border-top:
      1px
      solid
      var(--line);
  
    border-bottom:
      1px
      solid
      var(--line);
  
    background: #ffffff;
  }
  
  
  /* =========================
     DRAWING NUMBER
  ========================= */
  
  .drawing-gallery-slide
  figcaption > span {
    font-size: 9px;
  
    line-height: 1;
  
    color: var(--accent);
  }
  
  
  /* =========================
     DRAWING CAPTION TEXT
  ========================= */
  
  .drawing-gallery-slide
  figcaption > div {
    min-width: 0;
  }
  
  
  .drawing-gallery-slide
  figcaption strong {
    display: block;
  
    margin: 0;
  
    font-size: 10px;
  
    font-weight: 500;
  
    line-height: 1.3;
  
    letter-spacing: 1.3px;
  
    color: #111;
  }
  
  
  .drawing-gallery-slide
  figcaption p {
    margin:
      4px
      0
      0;
  
    font-size: 9px;
  
    line-height: 1.3;
  
    letter-spacing: 0.8px;
  
    color: #999;
  }
  
  
  /* =========================================================
     DRAWING PREVIOUS / NEXT BUTTONS
  ========================================================= */
  
  .drawing-gallery-btn {
    position: absolute;
  
    z-index: 20;
  
    /*
      Slightly above exact centre so arrows visually align
      with the drawing itself rather than image + caption.
    */
  
    top: 46%;
  
    display: flex;
  
    align-items: center;
  
    justify-content: center;
  
    width: 42px;
  
    height: 42px;
  
    padding: 0;
  
    transform:
      translateY(-50%);
  
    border:
      1px
      solid
      #cccccc;
  
    border-radius: 50%;
  
    background:
      rgba(
        255,
        255,
        255,
        0.95
      );
  
    color: #111;
  
    cursor: pointer;
  
    transition:
      border-color 0.2s ease,
      color 0.2s ease,
      background 0.2s ease;
  }
  
  
  .drawing-gallery-btn:hover {
    border-color:
      var(--accent);
  
    color:
      var(--accent);
  }
  
  
  .drawing-gallery-btn:focus-visible {
    outline:
      2px
      solid
      var(--accent);
  
    outline-offset: 3px;
  }
  
  
  .drawing-gallery-prev {
    left: 0;
  }
  
  
  .drawing-gallery-next {
    right: 0;
  }
  
  
  /* =========================================================
     DRAWING GALLERY FOOTER
  ========================================================= */
  
  .drawing-gallery-footer {
    display: flex;
  
    justify-content:
      space-between;
  
    align-items:
      center;
  
    gap: 32px;
  
    min-height: 48px;
  
    padding-top: 14px;
  }
  
  
  /* =========================================================
     DRAWING COUNTER
  ========================================================= */
  
  .drawing-gallery-counter {
    display: flex;
  
    align-items: center;
  
    gap: 10px;
  
    font-size: 9px;
  
    line-height: 1;
  
    letter-spacing: 1px;
  
    color: #888;
  }
  
  
  .drawing-gallery-current {
    color:
      var(--accent);
  }
  
  
  .drawing-gallery-counter-line {
    width: 26px;
  
    height: 1px;
  
    background: #ccc;
  }
  
  
  /* =========================================================
     DRAWING PROGRESS DOTS
  ========================================================= */
  
  .drawing-gallery-dots {
    display: flex;
  
    flex-wrap: wrap;
  
    justify-content:
      flex-end;
  
    align-items: center;
  
    gap: 8px;
  }
  
  
  .drawing-gallery-dot {
    display: block;
  
    width: 22px;
  
    height: 2px;
  
    padding: 0;
  
    border: 0;
  
    background: #d4d4d4;
  
    cursor: pointer;
  
    transition:
      width 0.3s ease,
      background 0.3s ease;
  }
  
  
  .drawing-gallery-dot:hover {
    background: #999;
  }
  
  
  .drawing-gallery-dot.active {
    width: 38px;
  
    background: var(--accent);
  }
  
  
  /* =========================================================
     PROJECT OUTCOME
  ========================================================= */
  
  .outcome {
    display: grid;
  
    grid-template-columns:
      1.05fr
      0.95fr;
  
    gap: 72px;
  
    align-items: stretch;
  }
  
  
  /* =========================================================
     OUTCOME POINTS
  ========================================================= */
  
  .outcome-points {
    display: grid;
  
    gap: 24px;
  
    margin-left: 64px;
  }
  
  
  .outcome-points div {
    display: grid;
  
    grid-template-columns:
      34px
      1fr;
  
    gap: 14px;
  }
  
  
  .outcome-points span {
    font-size: 10px;
  
    color: var(--accent);
  }
  
  
  .outcome-points p {
    margin: 0;
  
    font-size: 11px;
  
    line-height: 1.65;
  
    color: #666;
  }
  
  
  /* =========================================================
     REFLECTION
  ========================================================= */
  
  .reflection {
    display: flex;
  
    flex-direction: column;
  
    justify-content: center;
  
    margin: 0;
  
    padding: 44px;
  
    background: #f3f3f3;
  }
  
  
  .reflection > div {
    width: 34px;
  
    height: 2px;
  
    margin-bottom: 24px;
  
    background: var(--accent);
  }
  
  
  .reflection p {
    margin: 0;
  
    font-size: 15px;
  
    font-weight: 300;
  
    font-style: italic;
  
    line-height: 1.75;
  
    color: #555;
  }
  
  
  /* =========================================================
     PROJECT NAVIGATION
  ========================================================= */
  
  .project-nav {
    display: flex;
  
    justify-content:
      space-between;
  
    align-items: center;
  
    gap: 32px;
  
    padding:
      32px
      0
      56px;
  
    border-top:
      1px
      solid
      var(--line);
  }
  
  
  .project-nav a {
    font-size: 9px;
  
    letter-spacing: 2px;
  
    color: #555;
  
    text-decoration: none;
  }
  
  
  .project-nav a:hover {
    color:
      var(--accent);
  }
  
  
  /* =========================================================
     REVEAL ANIMATION
  ========================================================= */
  
  .js .reveal {
    opacity: 0;
  
    transform:
      translateY(6px);
  
    transition:
      opacity 0.52s ease,
      transform 0.52s ease;
  }
  
  
  .js .reveal.is-visible {
    opacity: 1;
  
    transform:
      translateY(0);
  }
  
  
  /* =========================================================
     TABLET
  ========================================================= */
  
  @media (max-width: 1000px) {
  
    .design-hero {
      grid-template-columns:
        1fr;
  
      min-height: 0;
    }
  
  
    .hero-media img {
      height: 440px;
    }
  
  
    .split,
    .split.reverse {
      grid-template-columns:
        1fr;
    }
  
  
    .pickup-feature {
      grid-template-columns:
        1fr;
    }
  
  
    .outcome {
      grid-template-columns:
        1fr;
    }
  
  
    .graph-grid,
    .component-grid,
    .decision-grid {
      margin-left: 0;
    }
  
  
    .intro {
      margin-left: 0;
    }
  
  
    .decision-grid {
      grid-template-columns:
        repeat(
          2,
          1fr
        );
    }
  
  
    .decision-large {
      grid-column:
        1 / -1;
  
      grid-row: auto;
    }
  
  
    .drawing-intro {
      margin-left: 0;
    }
  
  
    .drawing-gallery {
      margin-left: 0;
  
      padding:
        0
        46px;
    }
  
  
    .drawing-gallery-stage {
      height: 620px;
    }
  
  
    .outcome-points {
      margin-left: 0;
    }
  
  }
  
  
  /* =========================================================
     MOBILE
  ========================================================= */
  
  @media (max-width: 760px) {
  
    .design-project {
      width:
        calc(
          100% - 36px
        );
    }
  
  
    /* =========================
       HERO
    ========================= */
  
    .design-hero {
      padding:
        48px
        0
        68px;
    }
  
  
    .design-hero h1 {
      font-size:
        clamp(
          48px,
          16vw,
          72px
        );
    }
  
  
    .hero-media img {
      height: auto;
  
      max-height: 440px;
    }
  
  
    .meta {
      grid-template-columns:
        1fr;
  
      gap: 16px;
    }
  
  
    /* =========================
       SECTIONS
    ========================= */
  
    .design-section {
      padding:
        68px
        0;
    }
  
  
    .section-heading {
      grid-template-columns:
        28px
        1fr;
  
      gap: 12px;
  
      margin-bottom: 40px;
    }
  
  
    /* =========================
       PICKUP POINTS
    ========================= */
  
    .pickup-feature {
      gap: 36px;
  
      margin-top: 52px;
  
      padding-top: 48px;
    }
  
  
    .pickup-feature
    .media
    img {
      height: auto;
  
      max-height: 520px;
    }
  
  
    /* =========================
       GRAPHS
    ========================= */
  
    .graph-grid {
      grid-template-columns:
        1fr;
  
      gap: 38px;
    }
  
  
    /* =========================
       COMPONENTS
    ========================= */
  
    .component-grid {
      grid-template-columns:
        1fr;
  
      gap: 38px;
    }
  
  
    /* =========================
       DESIGN DECISIONS
    ========================= */
  
    .decision-grid {
      grid-template-columns:
        1fr;
    }
  
  
    .decision-large {
      grid-column: auto;
    }
  
  
    .decision-grid img,
    .decision-large img {
      height: auto;
  
      max-height: 520px;
    }
  
  
    /* =========================================================
       DRAWING GALLERY MOBILE
    ========================================================= */
  
    .drawing-intro {
      margin-bottom: 28px;
    }
  
  
    .drawing-gallery {
      margin-left: 0;
  
      padding:
        0
        0
        58px;
    }
  
  
    .drawing-gallery-stage {
      height: 500px;
    }
  
  
    .drawing-gallery-slide {
      grid-template-rows:
        minmax(0, 1fr)
        58px;
  
      padding-top: 8px;
    }
  
  
    .drawing-gallery-slide img {
      padding:
        0
        0
        8px;
    }
  
  
    /* =========================
       MOBILE ARROWS
    ========================= */
  
    .drawing-gallery-btn {
      top: auto;
  
      bottom: 3px;
  
      transform: none;
    }
  
  
    .drawing-gallery-prev {
      left: 0;
    }
  
  
    .drawing-gallery-next {
      right: 0;
    }
  
  
    /* =========================
       MOBILE FOOTER
    ========================= */
  
    .drawing-gallery-footer {
      justify-content:
        center;
  
      min-height: 46px;
    }
  
  
    .drawing-gallery-dots {
      display: none;
    }
  
  
    /* =========================
       MOBILE CAPTION
    ========================= */
  
    .drawing-gallery-slide
    figcaption {
      grid-template-columns:
        30px
        1fr;
    }
  
  
    /* =========================
       OUTCOME
    ========================= */
  
    .reflection {
      padding: 32px;
    }
  
  
    /* =========================
       PROJECT NAV
    ========================= */
  
    .project-nav {
      gap: 20px;
    }
  
  }
  
  
  /* =========================================================
     SMALL MOBILE
  ========================================================= */
  
  @media (max-width: 480px) {
  
    .design-project {
      width:
        calc(
          100% - 28px
        );
    }
  
  
    .drawing-gallery-stage {
      height: 410px;
    }
  
  
    .drawing-gallery-btn {
      width: 38px;
  
      height: 38px;
    }
  
  
    .drawing-gallery-slide
    figcaption strong {
      font-size: 9px;
    }
  
  
    .drawing-gallery-slide
    figcaption p {
      font-size: 8px;
    }
  
  
    .project-nav {
      flex-direction: column;
  
      align-items:
        flex-start;
    }
  
  }
  
  
  /* =========================================================
     REDUCED MOTION
  ========================================================= */
  
  @media (
    prefers-reduced-motion:
    reduce
  ) {
  
    html {
      scroll-behavior: auto;
    }
  
  
    .js .reveal {
      transition: none;
    }
  
  
    .drawing-gallery-slide {
      transition: none;
    }
  
  }

  /* =========================================================
   SURFACING PROJECT
   IMAGE-DOMINANT TECHNICAL LAYOUT
========================================================= */


/* =========================================================
   MAIN FEATURE LAYOUT
========================================================= */

.surfacing-feature {
    display: grid;
  
    grid-template-columns:
      minmax(220px, 0.42fr)
      minmax(0, 1.58fr);
  
    gap:
      clamp(
        40px,
        5vw,
        72px
      );
  
    align-items: start;
  
    margin-left: 64px;
  }
  
  
  /* =========================================================
     TEXT COLUMN
  ========================================================= */
  
  .surfacing-copy {
    position: static;
  
    max-width: 320px;
  }
  
  
  .surfacing-copy p {
    max-width: 320px;
  }
  
  
  /* make supporting text slightly quieter */
  
  .surfacing-copy > p {
    font-size: 11px;
  
    line-height: 1.75;
  
    color: #666;
  }
  
  
  /* =========================================================
     STEP LIST
  ========================================================= */
  
  .surfacing-copy .steps {
    gap: 14px;
  
    margin-top: 24px;
  
    padding-top: 20px;
  }
  
  
  .surfacing-copy .steps div {
    grid-template-columns:
      26px
      1fr;
  
    gap: 10px;
  
    font-size: 10px;
  
    line-height: 1.55;
  }
  
  
  .surfacing-copy .steps p {
    margin: 0;
  }
  
  
  /* =========================================================
     OVERVIEW IMAGE
  ========================================================= */
  
  .surfacing-overview {
    margin: 0;
  
    width: 100%;
  
    min-width: 0;
  }
  
  
  .surfacing-overview img {
    display: block;
  
    width: 100%;
  
    height: auto;
  
    max-width: none;
  
    max-height: none;
  
    object-fit: contain;
  
    object-position: top center;
  
    background: transparent;
  }
  
  
  /* =========================================================
     GIVE IMAGE MORE VISUAL PRESENCE
  ========================================================= */
  
  .surfacing-feature
  .surfacing-overview {
    align-self: start;
  
    transform:
      translateY(-4px);
  }
  
  
  /* =========================================================
     REDUCE EXCESS EMPTY SPACE
  ========================================================= */
  
  .surfacing-project
  .design-section {
    padding:
      80px
      0;
  }
  
  
  .surfacing-project
  .section-heading {
    margin-bottom: 40px;
  }
  
  
  /* =========================================================
     TABLET
  ========================================================= */
  
  @media (max-width: 1100px) {
  
    .surfacing-feature {
      grid-template-columns:
        minmax(200px, 0.5fr)
        minmax(0, 1.5fr);
  
      gap: 36px;
  
      margin-left: 0;
    }
  
  
    .surfacing-copy,
    .surfacing-copy p {
      max-width: 280px;
    }
  
  }
  
  
  /* =========================================================
     MOBILE / SMALL TABLET
  ========================================================= */
  
  @media (max-width: 850px) {
  
    .surfacing-feature {
      grid-template-columns:
        1fr;
  
      gap: 32px;
    }
  
  
    .surfacing-copy,
    .surfacing-copy p {
      max-width: 100%;
    }
  
  
    /*
      image comes first visually on smaller screens
    */
  
    .surfacing-overview {
      order: -1;
    }
  
  }
  
  
  /* =========================================================
     MOBILE
  ========================================================= */
  
  @media (max-width: 600px) {
  
    .surfacing-project
    .design-section {
      padding:
        64px
        0;
    }
  
  
    .surfacing-overview img {
      width: 100%;
    }
  
  }
/* =========================================================
   EUROP EDUCATION — AERODYNAMIC IMAGE GRID
   Remove the card-style outline/background from the
   front- and rear-wing concept/simulation images only.
========================================================= */

.graph-grid img[src*="EE_"] {
  border: none;
  background: transparent;
  box-shadow: none;
}

/* =========================================================
   EUROP EDUCATION — REMOVE IMAGE CONTAINER BOXES
   Keeps the actual image content unchanged while removing
   CSS-added white backgrounds, borders and shadows.
========================================================= */

.media img[src*="EE_"],
.component-grid img[src*="EE_"],
.graph-grid img[src*="EE_"] {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* =========================================================
   SURFACING DEVELOPMENT
   PROCESS STEPS BELOW COLLAGE

   Applies to:
   02 Bodywork
   03 T-Wing
   04 Adaptor
   05 Front Wing
   06 Wind Tunnel Model
   07 Rear Wing
   08 V6 Exhaust

   RWEP Upper remains unchanged.
========================================================= */


/* ---------------------------------------------------------
   MAIN SURFACING FEATURE
--------------------------------------------------------- */

.surfacing-project .surfacing-feature {
  display: grid;

  grid-template-columns:
    minmax(210px, 0.38fr)
    minmax(0, 1.62fr);

  grid-template-rows:
    auto
    auto;

  column-gap: clamp(40px, 5vw, 72px);

  row-gap: 34px;

  align-items: start;

  margin-left: 64px;
}


/* ---------------------------------------------------------
   TEXT COLUMN
--------------------------------------------------------- */

.surfacing-project .surfacing-copy {
  display: contents;
}


/*
The direct paragraphs become the left-hand description.
*/

.surfacing-project .surfacing-copy > p {
  grid-column: 1;
  grid-row: 1;

  max-width: 260px;

  margin: 0;

  font-size: 11px;
  line-height: 1.75;

  color: #666;
}


/*
The second paragraph needs to sit underneath the first.
Because display:contents removes the wrapper visually,
we combine the text column using positioning below.
*/

.surfacing-project .surfacing-copy > p + p {
  margin-top: 150px;
}


/* ---------------------------------------------------------
   IMAGE COLLAGE
--------------------------------------------------------- */

.surfacing-project .surfacing-overview {
  grid-column: 2;
  grid-row: 1;

  width: 100%;

  margin: 0;
}


.surfacing-project .surfacing-overview img {
  display: block;

  width: 100%;
  height: auto;

  max-width: none;
  max-height: none;

  object-fit: contain;
  object-position: top center;

  background: transparent;
}


/* ---------------------------------------------------------
   PROCESS STEPS

   Now spans BELOW the description + image.
--------------------------------------------------------- */

.surfacing-project .surfacing-copy .steps {
  grid-column: 1 / -1;
  grid-row: 2;

  display: grid;

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

  gap: 28px;

  width: 100%;

  margin: 0;

  padding-top: 22px;

  border-top:
    1px
    solid
    #dddddd;
}


/* Individual process point */

.surfacing-project .surfacing-copy .steps > div {
  display: grid;

  grid-template-columns:
    26px
    1fr;

  gap: 10px;

  align-items: start;

  margin: 0;
}


/* Process number */

.surfacing-project .surfacing-copy .steps > div > span {
  font-size: 9px;
  line-height: 1.5;

  color: var(--accent);
}


/* Process description */

.surfacing-project .surfacing-copy .steps > div > p {
  margin: 0;

  font-size: 10px;
  line-height: 1.65;

  color: #666;
}


/* =========================================================
   RWEP UPPER
   KEEP ORIGINAL LAYOUT
========================================================= */

/*
RWEP is section 09 and should retain the original
text + steps on the left / image on the right layout.
*/

.surfacing-project
.design-section:nth-of-type(10)
.surfacing-feature {
  display: grid;

  grid-template-columns:
    minmax(220px, 0.42fr)
    minmax(0, 1.58fr);

  gap: clamp(40px, 5vw, 72px);

  align-items: start;

  margin-left: 64px;
}


.surfacing-project
.design-section:nth-of-type(10)
.surfacing-copy {
  display: block;

  max-width: 320px;
}


.surfacing-project
.design-section:nth-of-type(10)
.surfacing-copy > p {
  max-width: 320px;

  margin:
    0
    0
    18px;

  font-size: 11px;
  line-height: 1.75;

  color: #666;
}


.surfacing-project
.design-section:nth-of-type(10)
.surfacing-copy > p + p {
  margin-top: 0;
}


.surfacing-project
.design-section:nth-of-type(10)
.surfacing-copy .steps {
  display: grid;

  grid-template-columns: 1fr;

  gap: 14px;

  width: auto;

  margin-top: 24px;

  padding-top: 20px;

  border-top:
    1px
    solid
    var(--line);
}


.surfacing-project
.design-section:nth-of-type(10)
.surfacing-overview {
  grid-column: auto;
  grid-row: auto;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

  .surfacing-project .surfacing-feature {
    grid-template-columns:
      minmax(190px, 0.45fr)
      minmax(0, 1.55fr);

    column-gap: 32px;

    margin-left: 0;
  }


  .surfacing-project .surfacing-copy .steps {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap:
      22px
      32px;
  }


  .surfacing-project
  .design-section:nth-of-type(10)
  .surfacing-feature {
    margin-left: 0;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

  .surfacing-project .surfacing-feature {
    grid-template-columns: 1fr;

    grid-template-rows: auto;

    gap: 28px;
  }


  /* Description */

  .surfacing-project .surfacing-copy > p {
    grid-column: 1;
    grid-row: auto;

    max-width: 100%;

    font-size: 12px;
  }


  .surfacing-project .surfacing-copy > p + p {
    margin-top: 0;
  }


  /* Image */

  .surfacing-project .surfacing-overview {
    grid-column: 1;
    grid-row: auto;

    width: 100%;
  }


  /* Steps */

  .surfacing-project .surfacing-copy .steps {
    grid-column: 1;
    grid-row: auto;

    grid-template-columns: 1fr;

    gap: 16px;

    padding-top: 20px;
  }


  /* RWEP also stacks normally on mobile */

  .surfacing-project
  .design-section:nth-of-type(10)
  .surfacing-feature {
    grid-template-columns: 1fr;

    gap: 28px;
  }

}

/* =========================================================
   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; }
}
