/* ===== refinement.css (full file, prettified) ===== */

:root {
  --muted: #292929;
  --ink: #171717;
  --copper: #982f18;
  --accent: #b53920;
  --copper-dark: #7d2617;
  --line: #dedbd6;
}

body { color: var(--ink); }
p, li, address { color: var(--ink); }

.eyebrow {
  color: var(--copper) !important;
  font-weight: 750;
}

.page-intro,
.hero-description,
.story-copy p,
.detail-copy p,
.detail-copy ul,
.overview-copy p,
.infrastructure p,
.footer-contact p,
.footer-contact address {
  color: #232323;
}

.page-heading h1,
.detail-copy h2 { color: #232926; }

.line-icon {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--copper);
}

/* ---------- Header / contact strip ---------- */
.contact-strip .wrap > div {
  flex-direction: row;
  gap: 22px;
}

.header-whatsapp {
  gap: 7px;
  color: #176c41;
}

.header-whatsapp .line-icon {
  width: 19px;
  height: 19px;
  color: inherit;
}

.contact-strip a {
  font-size: 13px;
  font-weight: 750;
}

/* ---------- Home hero ---------- */
.home-product-slider { padding: 0; }

.home-hero {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 46px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 42px;
}

.heritage-brand {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}

.heritage-brand > img {
  width: 438px;
  object-fit: contain;
}

.heritage-brand h1 {
  margin: 0;
  color: #232926;
  text-align: center;
  line-height: 1;
}

.heritage-brand .jj {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 900;
  font-size: 96px;
  letter-spacing: -7px;
  line-height: .84;
}

.heritage-brand .enterprise {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 5px;
  margin-top: 14px;
}

.hero-introduction h2 {
  font-size: clamp(31px, 3.1vw, 46px);
  line-height: 1.12;
  letter-spacing: -1.6px;
  margin: 14px 0 20px;
}

.hero-description {
  font-size: 17px;
  line-height: 1.7;
  max-width: 520px;
}

.hero-button {
  margin-top: 24px;
  display: inline-flex;
  gap: 26px;
  background: var(--copper);
  color: white;
  border: 1px solid var(--copper);
  font-weight: 650;
  font-size: 15px;
  padding: 13px 22px;
}

.hero-button:hover { background: var(--copper-dark); }

.home-facility {
  margin: 0;
  min-width: 0;
  background: #f8f8fa;
}

.home-facility > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
}

.home-facility figcaption {
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.6;
}

.home-facility figcaption > span {
  display: block;
  font-weight: 750;
  letter-spacing: 1px;
  color: var(--copper);
  font-size: 12px;
}

.home-facility figcaption a {
  display: block;
  margin-top: 8px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Key facts ---------- */
.key-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #f8f8fa;
  border-block: 1px solid #d7dbe3;
  padding: 28px 24px;
  gap: 12px;
}

.key-facts > div {
  padding: 4px 16px;
  border-right: 1px solid #d7dbe3;
}

.key-facts > div:last-child { border-right: 0; }

.key-facts strong {
  display: block;
  font-size: clamp(34px, 3.4vw, 49px);
  color: #852d1c;
  letter-spacing: -2px;
  line-height: 1.25;
}

.key-facts strong span {
  font-size: 19px;
  letter-spacing: -.4px;
}

.key-facts > div > span {
  display: block;
  font-size: 14px;
  margin-top: 8px;
  font-weight: 650;
}

/* ---------- Category cards ---------- */
.category-section h2 { margin-bottom: 34px; }

.explore-grid {
  align-items: stretch;
  gap: 24px;
}

.product-choice {
  display: grid;
  grid-template-rows: auto 1fr;
  background: white;
  border: 1px solid #d7dbe3;
  color: var(--ink);
}

.product-choice:hover {
  border-color: var(--copper);
  box-shadow: 0 8px 26px #6025190d;
}

.product-collage {
  aspect-ratio: 1.55;
  background: #f8f8fa;
  gap: 5px;
  padding: 6px;
}

.product-choice .capability-body {
  display: grid;
  grid-template-rows: 30px 126px 112px 42px;
  padding: 25px;
  gap: 0;
}

.product-choice .eyebrow {
  font-size: 11px !important;
  letter-spacing: 1px;
  min-height: 0;
  margin: 0;
}

.product-choice h3 {
  font-size: 26px;
  line-height: 1.18;
  min-height: 0;
  margin: 0;
  letter-spacing: -.65px;
  color: #232926;
}

.product-choice .capability-body > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.65;
  min-height: 0;
  margin: 0;
}

.product-choice .text-link {
  align-self: end;
  font-size: 15px;
  margin: 0;
  color: var(--copper);
  font-weight: 750;
}

/* ---------- Manufacturing preview ---------- */
.manufacturing-preview { background: #f8f8fa; }
.manufacturing-preview h2 { max-width: 760px; }

.section-intro {
  font-size: 20px;
  line-height: 1.6;
  margin: 22px 0 35px;
}

.capability-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.capability-preview-grid article {
  border-top: 1px solid #d7dbe3;
  padding-top: 26px;
}

.capability-preview-grid h3 {
  font-size: 25px;
  margin: 18px 0 14px;
}

.capability-preview-grid p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.capability-preview-grid .text-link {
  font-size: 14px;
  color: var(--copper);
}

.manufacturing-preview .process-flow { margin-top: 40px; }

/* ---------- Company story ---------- */
.company-story-box {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 65px;
  background: #f8f8fa;
  border: 1px solid #d7dbe3;
  padding: 46px;
  transition: background .2s;
}

.company-story-box:hover { background: #e8ecf2; }

.company-story-box h2 {
  font-size: 38px;
  color: #232926;
}

.company-story-box p:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.8;
}

.company-story-box .text-link {
  color: var(--copper);
  margin-top: 22px;
  font-size: 16px;
  font-weight: 700;
}

/* ---------- Overview / gallery ---------- */
.overview-section { padding: 38px 0 16px; }
.overview-section .overview-copy { max-width: 1080px; }
.gallery-section { padding-block: 36px 42px; }

.carousel {
  max-width: 1280px;
  margin: auto;
}

.carousel-stage {
  height: 460px;
  position: relative;
  overflow: hidden;
}

.carousel-slide {
  width: calc(100% - 120px);
  height: 430px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  opacity: 0;
  filter: none;
  z-index: 0;
  margin: 0;
}

.carousel-slide img {
  object-fit: contain;
  max-width: 100%;
  height: 100%;
  margin: auto;
}

.carousel-controls button {
  top: calc(50% - 30px);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  background: #f8f8fa;
  opacity: 1;
  color: #6b291a;
}

.carousel-controls [data-prev] { left: 14px; }
.carousel-controls [data-next] { right: 14px; }
.carousel-controls { justify-content: center; }

.carousel-controls [data-count] {
  color: #202020;
  font-weight: 650;
}

/* ---------- Breadcrumb / category pager ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 18px;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--copper);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.category-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 20px 0;
}

.category-pager > a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8f8fa;
  padding: 26px;
  border: 1px solid #d7dbe3;
}

.category-pager > a:last-child { text-align: right; }

.category-pager small {
  font-size: 14px;
  color: var(--copper);
  font-weight: 700;
}

.category-pager strong {
  font-size: 24px;
  font-weight: 650;
}

.category-pager > a:hover { border-color: var(--copper); }
.related-categories .text-link { color: var(--copper); }

/* ---------- People ---------- */
.people-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px 40px;
}

.people-grid article {
  max-width: none;
  min-width: 0;
  background: #f8f8fa;
  border: 1px solid #d7dbe3;
  padding: 28px;
}

.people-grid .portrait-placeholder {
  width: 88px;
  height: 88px;
  max-width: none;
  margin-bottom: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--copper);
  color: #fff;
}

.people-grid h3 {
  font-size: 29px;
  color: #232926;
}

.people-grid p:not(.eyebrow) {
  font-size: 16px;
  color: #232323;
  line-height: 1.85;
  margin-top: 16px;
}

.people-grid .eyebrow { font-size: 12px !important; }

/* ---------- Infrastructure ---------- */
.infrastructure-intro > strong { padding-left: 28px; }

.infrastructure-intro > strong .line-icon {
  display: block;
  margin-bottom: 20px;
  width: 45px;
  height: 45px;
}

.infrastructure-row h3 .line-icon {
  display: block;
  margin-bottom: 18px;
}

.infrastructure-row > h3 { padding-left: 28px; }

/* ---------- Contact profile ---------- */
.contact-profile-grid {
  grid-template-columns: 1fr;
  max-width: 1120px;
  gap: 30px;
}

.contact-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  column-gap: 36px;
  padding: 34px 42px;
  align-items: start;
}

.contact-profile > .eyebrow,
.contact-profile > h2,
.contact-profile > .contact-large,
.contact-profile > .whatsapp-link { grid-column: 1; }

.contact-profile > .eyebrow { grid-row: 1; }

.contact-profile > h2 {
  grid-row: 2;
  margin: 12px 0 16px;
}

.contact-profile > .contact-large { font-size: 26px; }

.contact-profile > .whatsapp-link {
  justify-self: start;
  align-self: start;
  margin: 20px 0 0;
  font-size: 15px;
}

.save-contact {
  grid-column: 2;
  grid-row: 1 / 7;
  margin: 0;
  padding: 0;
  border: 0;
  align-self: center;
}

.contact-qr {
  width: 240px;
  margin: 0 auto;
  height: auto;
}

.desktop-qr p {
  text-align: center;
  font-weight: 650;
  font-size: 15px;
  margin: 8px 0 0;
}

.mobile-save { display: none; }

/* ---------- Location ---------- */
.location-panel { align-items: center; }
.location-panel address { max-width: 700px; }

.map-link {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
  background: #f8f8fa;
  border: 1px solid #d7dbe3;
  padding: 22px;
  color: #632719;
}

.map-link .line-icon {
  width: 38px;
  height: 38px;
}

.map-link span { font-size: 14px; }

.map-link strong {
  display: block;
  font-size: 19px;
  margin-top: 5px;
}

.map-link:hover { background: #e8ecf2; }

/* ---------- Misc ---------- */
.cmm-figure {
  max-width: 340px;
  margin: 30px 0 0;
}

.cmm-figure img {
  width: 100%;
  height: auto;
}

.cmm-figure figcaption {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 8px;
  color: #292929;
}

.scan-note { color: #232323; }
.footer-contact a { font-weight: 600; }
.footer-contact > div > a:not(.brand) { font-size: 15px; }
.company-elevation figure { margin: 0; }
.detail-copy strong { color: #101010; }

/* ---------- Responsive: desktop >= 1000px ---------- */
@media (min-width: 1000px) {
  .explore-grid { grid-template-rows: auto; }

  .product-choice .capability-body {
    grid-template-rows: 30px 126px 112px 42px;
  }
}

/* ---------- Responsive: <= 1100px ---------- */
@media (max-width: 1100px) {
  .home-hero { gap: 28px; }
  .heritage-brand .jj { font-size: 79px; }

  .heritage-brand .enterprise {
    font-size: 19px;
    letter-spacing: 4px;
  }

  .product-choice .capability-body {
    padding: 20px;
    grid-template-rows: 34px 132px 144px 42px;
  }

  .product-choice h3 { font-size: 23px; }
  .product-choice .eyebrow { font-size: 10px !important; }
  .company-story-box { gap: 35px; }
  .company-story-box h2 { font-size: 32px; }
  .key-facts { padding-inline: 8px; }
  .key-facts > div { padding-inline: 12px; }
  .key-facts strong { font-size: 37px; }
  .location-panel { gap: 25px; }
  .map-link { padding: 18px; }
  .map-link strong { font-size: 16px; }
}

/* ---------- Responsive: <= 760px ---------- */
@media (max-width: 760px) {
  .contact-strip .wrap {
    flex-wrap: wrap;
    gap: 0;
  }

  .contact-strip .wrap > div {
    gap: 12px;
    flex-direction: row;
  }

  .contact-strip a { font-size: 12px; }
  .header-whatsapp span { display: none; }

  .header-whatsapp {
    min-width: 30px;
    justify-content: center;
  }

  .home-hero {
    grid-template-columns: 1fr;
    padding-top: 26px;
    padding-bottom: 25px;
    gap: 28px;
  }

  .heritage-brand {
    margin-bottom: 24px;
    gap: 20px;
  }

  .heritage-brand .jj { font-size: 80px; }
  .heritage-brand .enterprise { font-size: 21px; }
  .hero-introduction h2 { font-size: 36px; }
  .hero-description { font-size: 17px; }
  .home-facility figcaption { padding: 16px; }

  .key-facts {
    grid-template-columns: 1fr 1fr;
    padding: 20px 12px;
    gap: 22px 4px;
  }

  .key-facts > div:nth-child(2) { border-right: 0; }
  .key-facts strong { font-size: 37px; }
  .key-facts strong span { font-size: 16px; }
  .key-facts > div > span { font-size: 13px; }

  .product-choice .capability-body {
    display: block;
    padding: 24px;
  }

  .product-choice .eyebrow {
    font-size: 11px !important;
    margin-bottom: 13px;
  }

  .product-choice h3 {
    font-size: 28px;
    margin-bottom: 18px;
  }

  .product-choice .capability-body > p:not(.eyebrow) { margin-bottom: 22px; }
  .product-choice .text-link { display: inline-flex; }

  .capability-preview-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .capability-preview-grid article { padding-top: 20px; }

  .company-story-box {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 20px;
  }

  .company-story-box h2 { font-size: 32px; }
  .company-story-box p:not(.eyebrow) { font-size: 17px; }

  .people-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .people-grid article { padding: 24px; }

  .infrastructure-intro > strong,
  .infrastructure-row > h3 { padding-left: 12px; }

  .contact-profile {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .contact-profile > .contact-large { font-size: 22px; }

  .save-contact {
    grid-column: 1;
    grid-row: auto;
    margin-top: 24px;
  }

  .desktop-qr { display: none; }

  .mobile-save {
    display: inline-flex;
    background: var(--copper);
    color: white;
    font-size: 15px;
    padding: 13px 18px;
  }

  .location-panel { display: block; }

  .map-link {
    display: inline-flex;
    margin-top: 24px;
  }

  .carousel-stage { height: 330px; }

  .carousel-slide {
    width: calc(100% - 84px);
    height: 310px;
  }

  .carousel-controls button {
    width: 38px;
    height: 38px;
    font-size: 20px;
    padding: 0;
  }

  .carousel-controls [data-prev] { left: 5px; }
  .carousel-controls [data-next] { right: 5px; }
  .category-pager { gap: 12px; }
  .category-pager > a { padding: 18px; }
  .category-pager strong { font-size: 18px; }
  .breadcrumb { font-size: 13px; }
  .page-heading h1 { font-size: 36px; }
  .cmm-figure { max-width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .company-story-box { transition: none; }
}

/* ---------- Founder / portrait ---------- */
.founder-line {
  font-size: 15px;
  margin-top: 16px;
  color: #222;
}

.founder-line strong { color: #632719; }
.portrait-placeholder { color: #fff; }

header {
  background: #fff;
  z-index: 40;
}

/* ---------- Home product slider ---------- */
.home-product-slider {
  position: relative;
  z-index: 1;
  background: transparent;
}

.home-product-slider .carousel-slide a {
  display: block;
  height: 100%;
  cursor: pointer;
}

.home-product-slider .carousel-slide[aria-hidden="false"] { pointer-events: auto; }

.home-product-slider .carousel-controls {
  margin: 0;
  min-height: 0;
  height: 0;
  padding: 0;
}

.home-product-slider .carousel-stage,
.home-product-slider .carousel-slide { background: transparent; }

.home-product-slider .carousel,
.gallery-section .carousel {
  max-width: none;
  width: 100%;
  margin: 0;
}

.home-product-slider .carousel-stage,
.gallery-section .carousel-stage {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #111;
}

.home-product-slider .carousel-stage { aspect-ratio: 20/7; }

.home-product-slider .carousel-slide,
.gallery-section .carousel-slide {
  width: 100%;
  height: 100%;
  top: 0;
  left: 50%;
  overflow: hidden;
  border-radius: 0;
  background: #111;
}

.home-product-slider .carousel-slide img,
.gallery-section .carousel-slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.slide-copy {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  width: min(560px, 48%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  gap: 12px;
  padding: 40px 88px 64px 32px;
  color: #fff;
  background: linear-gradient(90deg, rgba(0,0,0,0), rgba(8,8,8,.5) 24%, rgba(8,8,8,.78));
  pointer-events: none;
}

.slide-copy .slide-title {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3.2vw, 52px);
  font-weight: 750;
  letter-spacing: -1.1px;
  line-height: 1.05;
}

.slide-copy p {
  margin: 0;
  color: #fff;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.5;
  max-width: 32ch;
}

.gallery-section .carousel-controls [data-next] {
  right: auto;
  left: 76px;
}

.home-product-slider .carousel-controls [data-count] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.home-product-slider .carousel-controls button { display: none; }

.home-product-slider .carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 16;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.home-product-slider .carousel-dots button {
  width: 8px;
  height: 8px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff9;
}

.home-product-slider .carousel-dots button.is-active {
  width: 22px;
  background: var(--copper);
}

@media (max-width: 760px) {
  .home-product-slider .carousel-slide,
  .gallery-section .carousel-slide {
    width: 100%;
    height: 100%;
  }

  .slide-copy {
    width: auto;
    left: 0;
    top: auto;
    align-items: flex-end;
    padding: 36px 18px 28px;
    background: linear-gradient(transparent, rgba(0,0,0,.82));
  }

  .slide-copy .slide-title { font-size: 26px; }

  .gallery-section .carousel-controls [data-next] {
    left: auto;
    right: 8px;
  }
}

/* ---------- Location map ---------- */
.location-panel { display: block; }

.works-map {
  display: block;
  width: min(640px, 100%);
  height: 170px;
  margin-inline: auto;
  border: 0;
  border-radius: 12px;
}

/* ---------- Contact pair ---------- */
.contact-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: none;
}

.contact-profile.contact-pair {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 125px;
  row-gap: 15px;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 22px 28px;
  background: #f4f5f7;
  border: 1px solid #e4e6ea;
  border-radius: 16px;
  border-top: 1px solid #e4e6ea;
}

.contact-pair .contact-person {
  grid-column: 1;
  grid-row: 1;
}

.contact-pair .contact-person h2 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -.6px;
}

.contact-pair .contact-large {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 650;
  color: #171717;
  text-decoration: none;
  margin: 0 0 8px;
}

.contact-pair .contact-large:last-child { margin-bottom: 0; }

.contact-pair .contact-icon {
  width: 22px;
  height: 22px;
  flex: none;
  color: #171717;
}

.contact-profile.contact-pair > .whatsapp-link {
  grid-column: 1;
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1;
  justify-self: start;
}

.contact-pair .wa-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.contact-pair .contact-qr {
  grid-column: 2;
  grid-row: 1;
  width: 118px;
  height: auto;
  margin: 0;
  justify-self: center;
  align-self: center;
}

.contact-pair .scan-note {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  justify-self: center;
  align-self: center;
  text-align: center;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.2;
  color: #222;
  white-space: nowrap;
}

.contact-profile.contact-pair > .mobile-save {
  grid-column: 1;
  grid-row: 3;
  justify-self: start;
}

@media (max-width: 760px) {
  .works-map {
    width: 100%;
    height: 150px;
  }

  .contact-profile-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-profile.contact-pair {
    grid-template-columns: 1fr;
    justify-content: stretch;
    padding: 26px;
  }

  .contact-pair .contact-person h2 { font-size: 28px; }
  .contact-pair .contact-large { font-size: 22px; }

  .contact-pair .contact-qr,
  .contact-pair .scan-note { display: none; }
}

h1, h2, h3 { color: #232926; }

/* ---------- Mobile header ---------- */
.nav-whatsapp { display: none; }

@media (max-width: 1100px) {
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px;
  }

  header .contact-strip {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
  }

  header .contact-strip .wrap {
    width: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    padding: 0;
  }

  header .contact-strip .wrap > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  header .contact-strip a {
    min-height: 0;
    padding: 1px 0;
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
  }

  header .contact-strip .header-whatsapp { display: none; }

  header .header-row {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    flex: none;
    justify-content: flex-end;
    align-items: center;
  }

  header .header-row .menu-toggle {
    background: var(--copper-dark);
    color: #fff;
    border: 0;
    padding: 8px 14px;
  }

  header #navigation.open .nav-whatsapp {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #176c41;
    font-weight: 750;
  }
}

@media (max-width: 760px) {
  .home-product-slider .carousel-stage {
    aspect-ratio: 20/7;
    height: auto;
    background: #fff;
  }

  .home-product-slider .carousel-slide,
  .home-product-slider .carousel-slide a { background: #fff; }

  .home-product-slider .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #fff;
  }

  .home-product-slider .carousel-dots { bottom: 6px; }
}

/* ---------- Gallery carousel ---------- */
.gallery-section .carousel {
  max-width: 1280px;
  width: auto;
  margin: auto;
}

.gallery-section .carousel-stage {
  width: auto;
  height: 460px;
  aspect-ratio: auto;
  background: transparent;
}

.gallery-section .carousel-slide {
  width: min(62vw, 720px);
  height: 410px;
  top: 10px;
  background: transparent;
  overflow: hidden;
}

.gallery-section .carousel.enhanced .carousel-slide {
  transition: transform .75s ease, opacity .75s ease, filter .75s ease;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-section .carousel.enhanced .carousel-slide { transition: none; }
}

.gallery-section .carousel-slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.gallery-section .slide-copy { display: none; }

.gallery-section .carousel-controls {
  height: auto;
  min-height: 36px;
}

.gallery-section .carousel-controls button {
  display: grid;
  place-items: center;
  background: var(--copper);
  color: #fff;
  opacity: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 22px;
  padding: 0;
}

.gallery-section .carousel-controls [data-prev] { left: 18px; }

.gallery-section .carousel-controls [data-next] {
  left: auto;
  right: 18px;
}

.gallery-section .carousel-controls [data-count] {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}

@media (max-width: 760px) {
  .gallery-section .carousel-stage { height: 320px; }

  .gallery-section .carousel-slide {
    width: 74vw;
    height: 280px;
  }

  .gallery-section .carousel-controls button {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* ---------- Desktop header ---------- */
@media (min-width: 1101px) {
  header .header-row {
    min-height: 64px;
    align-items: center;
  }

  header #navigation {
    align-items: center;
    gap: 10px;
  }

  header #navigation > a:not(.nav-whatsapp) {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    background: #f4f5f7;
    border: 1px solid #e4e6ea;
    border-radius: 10px;
    padding: 10px 16px;
    min-height: 0;
  }

  header #navigation > a:not(.nav-whatsapp):hover { background: #eceef2; }
}

/* ---------- Knife switch (base rules) ---------- */
#knife-switch .knife-photos { align-self: start; }

#knife-switch .knife-photos figure {
  background: #f4f5f7;
  border-radius: 12px;
  padding: 12px;
}

#knife-switch .knife-photos figcaption {
  position: static;
  display: block;
  margin: 10px 0 0;
  padding: 0;
  background: transparent;
  color: #232926;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

#knife-switch .detail-images.images-3 { grid-template-columns: 1fr; }
#knife-switch .detail-images.images-3 figure:first-child { grid-column: auto; }

#knife-switch .detail-images.images-3 img {
  max-height: 340px;
  width: 100%;
  object-fit: contain;
  background: #f4f5f7;
}

/* ---------- Header brand ---------- */
.header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px 6px;
  background: #fff;
}

.header-brand img {
  width: 150px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.header-brand p {
  margin: 0;
  color: #232926;
  line-height: 1;
  text-align: left;
}

.header-brand .jj {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 900;
  font-size: 34px;
  letter-spacing: -2px;
  line-height: .84;
}

.header-brand .enterprise {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
  margin-top: 5px;
}

.heritage-brand > img {
  width: 150px;
  height: auto;
}

.heritage-brand .jj {
  font-size: 52px;
  letter-spacing: -3px;
}

.heritage-brand .enterprise {
  font-size: 15px;
  letter-spacing: 3px;
  margin-top: 6px;
}

.home-hero .hero-introduction h1 {
  font-size: clamp(31px, 3.1vw, 46px);
  line-height: 1.12;
  letter-spacing: -1.6px;
  margin: 14px 0 20px;
  color: #232926;
}

@media (max-width: 1100px) {
  header { flex-wrap: wrap; }

  header .header-brand {
    order: -1;
    flex: 1 0 100%;
    padding: 4px 12px 6px;
  }

  header .header-brand img {
    width: 150px;
    height: auto;
  }

  header .header-brand .jj { font-size: 26px; }

  header #navigation.open a:not(.nav-whatsapp) {
    border-radius: 10px;
    background: #f4f5f7;
    margin: 4px 0;
    padding: 8px 12px;
  }
}

/* ---------- Rounded corners ---------- */
.home-product-slider .carousel-stage { border-radius: 0; }

.product-choice,
.category-pager > a,
.company-story-box,
.people-grid article,
.contact-profile,
.home-facility,
.gallery-section .carousel-slide {
  border-radius: 16px;
  overflow: hidden;
}

main img,
.gallery-section .carousel-slide img { border-radius: 16px; }

.detail-images.images-2 { grid-template-columns: 1fr 1fr; }

.detail-images figure,
.quality-figures figure,
.company-elevation figure,
.cmm-figure,
#knife-switch .knife-photos figure,
#erda-reports .erda-sheet {
  overflow: hidden;
  border-radius: 16px;
}

.product-collage img,
.detail-images img,
.home-facility > img,
.company-elevation img,
.cmm-figure img,
.quality-figures img,
#knife-switch .knife-photos img,
#erda-reports .erda-sheet img { border-radius: 16px; }

.header-brand img { border-radius: 10px; }
.contact-qr { border-radius: 0; }

@media (max-width: 760px) {
  .home-product-slider { padding: 0 10px 10px; }
}

.button,
.hero-button,
.whatsapp-link,
.contact-pair .whatsapp-link,
.contact-profile.contact-pair > .whatsapp-link,
.menu-toggle,
.mobile-save,
header .header-row .menu-toggle { border-radius: 12px; }

.gallery-section .carousel-slide,
.product-choice,
.product-collage {
  border-radius: 16px;
  overflow: hidden;
}

.gallery-section .carousel-slide img,
.product-collage img,
.detail-images img,
.home-facility > img,
.company-elevation img,
.cmm-figure img,
.quality-figures img,
#knife-switch .knife-photos img,
#erda-reports .erda-sheet img,
main img { border-radius: 16px; }

.home-product-slider .carousel-stage,
.home-product-slider .carousel-slide,
.home-product-slider .carousel-slide a,
.home-product-slider .carousel-slide img {
  border-radius: 0;
}

.gallery-section .carousel-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  border-radius: 16px;
}

.gallery-section .carousel-slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: transparent;
  border-radius: 24px;
}

.gallery-section .carousel.enhanced .carousel-slide img { transition: filter .75s ease; }

.product-collage {
  aspect-ratio: auto;
  height: auto;
  align-items: center;
  background: #fff;
  gap: 8px;
  overflow: visible;
}

.product-collage img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
  border-radius: 16px;
}

/* ---------- ERDA reports (base rules) ---------- */
#erda-reports h2,
#erda-reports h3 { color: #232926; }

#erda-reports .erda-sheet { margin: 28px 0 0; }

#erda-reports .erda-sheet img {
  display: block;
  width: min(560px, 100%);
  height: auto;
  background: #fff;
}

#erda-reports .erda-sheet figcaption {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 550;
}

.erda-pair {
  display: grid;
  grid-template-columns: minmax(170px, 280px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 20px;
}

.erda-pair .erda-sheet { margin: 0; }
.erda-pair .erda-sheet img { width: 100%; }

.erda-pair .report-note h3 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -.3px;
}

#erda-reports .report-note p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 640px;
  margin-top: 0;
}

@media (max-width: 760px) {
  .erda-pair {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }
}

/* ---------- Section spacing ---------- */
.section { padding: 40px 0; }
.page-heading { padding: 24px 0 18px; }
.page-intro { margin-top: 12px; }

.detail-copy h2,
.quality-copy h2 {
  margin: 26px 0 10px;
  font-size: clamp(26px, 2.4vw, 34px);
}

.detail-copy h3 {
  margin: 20px 0 8px;
  font-size: 22px;
  letter-spacing: -.3px;
}

.detail-copy p + p,
.quality-copy p + p { margin-top: 10px; }

.detail-copy .capabilities { margin: 8px 0 0; }
.detail-grid { gap: 28px; }

/* ---------- Machining ---------- */
#machining .detail-images {
  align-self: start;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#machining .detail-images img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  background: #f4f5f7;
}

#machining .machining-rest { margin-top: 8px; }
#machining .machining-rest h3:first-child { margin-top: 28px; }

/* ---------- Product cards (flex override) ---------- */
.product-choice .capability-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  grid-template-rows: none;
}

.product-choice h3,
.product-choice .capability-body > p:not(.eyebrow) { margin: 0; }

.product-choice .text-link { margin-top: 4px; }

@media (min-width: 1000px) {
  .explore-grid { grid-template-rows: auto; }

  .product-choice .capability-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    grid-template-rows: none;
  }
}

#categories .explore-grid { align-items: stretch; }
#categories .product-choice { height: 100%; }

#categories .product-collage {
  aspect-ratio: 1.7;
  height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  align-items: stretch;
  gap: 8px;
}

#categories .product-collage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f4f5f7;
}

#categories .product-choice .capability-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#categories .product-choice .text-link { margin-top: auto; }

/* ---------- Page cover ---------- */
.page-cover .page-cover-art { display: none; }

@media (min-width: 1101px) {
  .page-cover {
    position: relative;
    padding: 0;
    background: #f4f5f6;
    overflow: hidden;
  }

  .page-cover .page-cover-art {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    border-radius: 0;
    margin: 0;
  }

  .page-cover > .wrap {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .page-cover h1,
  .page-cover .page-intro { max-width: min(480px, 42%); }

  .page-cover h1 { font-size: clamp(32px, 2.8vw, 46px); }
}

/* ---------- Quality figures ---------- */
.quality-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}

.quality-figures img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.quality-figures figcaption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .quality-figures { grid-template-columns: 1fr; }
}

/* =====================================================
   Copper Flexible Jumpers page (keep this block at the END of the file)
   Left: text. Right: 2 images stacked, full image visible (no cropping).
   ===================================================== */

/* Text column slightly wider, image column narrower so both fit together */
.jumpers-section .detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px;
  align-items: start;
}

.jumpers-section .detail-copy {
  min-width: 0;
  margin: 0;
  padding: 0;
}

/* Image column: images stacked one below the other */
.jumpers-section .jumpers-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.jumpers-section .jumpers-images figure {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
}

/* Natural image ratio: width fills the column, height follows the image, nothing is cropped */
.jumpers-section .jumpers-images img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 16px;
}

/* Tablet and mobile: text first, images below */
@media (max-width: 1000px) {
  .jumpers-section .detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* =====================================================
   Precision Machining page - zig-zag rows (keep at the END of the file)
   Odd rows: image left / content right. Even rows (.is-reverse): image right / content left.
   ===================================================== */
.zigzag-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-block: 28px;
}

/* Swap the image to the right side on reversed rows */
.zigzag-row.is-reverse .zigzag-media { order: 2; }
.zigzag-row.is-reverse .zigzag-copy  { order: 1; }

.zigzag-media {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #f4f5f7;
}

/* Full image visible, natural ratio, no cropping */
.zigzag-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
}

.zigzag-copy {
  min-width: 0;
  margin: 0;
}

.zigzag-copy > h3:first-child { margin-top: 0; }

/* Tablet and mobile: image first, content below */
@media (max-width: 1000px) {
  .zigzag-row {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 20px;
  }

  .zigzag-row.is-reverse .zigzag-media,
  .zigzag-row.is-reverse .zigzag-copy { order: 0; }
}

/* ---------- Zig-zag extras (used on the Quality page) ---------- */
.zigzag-copy > h2:first-child { margin-top: 0; }

.zigzag-media figcaption {
  padding: 10px 14px 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #232926;
}

/* =====================================================
   Zig-zag balance fix (Quality + Precision Machining)
   Smaller images, larger and more readable text. Keep at the END of the file.
   ===================================================== */

/* Image column narrower, text column wider */
.zigzag-row { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.zigzag-row.is-reverse { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }

/* Image is capped in height and centered; the full picture stays visible */
.zigzag-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 440px;
  width: fit-content;
  justify-self: center;
  overflow: hidden;
  border-radius: 24px;
  background: transparent;
}

.zigzag-media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  background: transparent;
  border-radius: 24px;
  clip-path: inset(0 round 24px);
}

.zigzag-media figcaption {
  align-self: stretch;
  text-align: center;
}

/* Larger, easier to read text */
.zigzag-copy h2 {
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.15;
  margin: 0 0 14px;
}

.zigzag-copy h3 {
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.2;
  margin: 0 0 14px;
}

.zigzag-copy p,
.zigzag-copy li {
  font-size: 18px;
  line-height: 1.75;
}

.zigzag-copy p { margin: 0 0 14px; }
.zigzag-copy ul { margin: 8px 0 14px; }

/* Tablet and mobile */
@media (max-width: 1000px) {
  .zigzag-row,
  .zigzag-row.is-reverse { grid-template-columns: 1fr; }

  .zigzag-media { max-width: 100%; width: 100%; }
  .zigzag-media img { max-height: 340px; }
  .zigzag-copy p, .zigzag-copy li { font-size: 17px; }
}

/* Round corners only. Keep original image width/height/max-height. */
.detail-images {
  min-width: 0;
}

.detail-images figure {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.detail-images img {
  flex: none;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.quality-figures img,
.company-elevation img,
.cmm-figure img,
#knife-switch .knife-photos img,
#erda-reports .erda-sheet img,
.home-facility > img,
.product-collage img,
.jumpers-section .jumpers-images img {
  border-radius: 16px;
}

.gallery-section .carousel-slide img {
  border-radius: 16px;
}

.home-product-slider .carousel-stage,
.home-product-slider .carousel-slide,
.home-product-slider .carousel-slide a,
.home-product-slider .carousel-slide img,
.page-cover .page-cover-art,
.contact-qr {
  border-radius: 0;
}

/* =====================================================
   Knife switch page: layout fix (keep this block at the END of the file)
   Left: text. Right: 1 big image on top, 2 images below side by side
   (same pattern as the Copper & Aluminum pages). Full image visible, rounded 16px.
   ===================================================== */

/* Two-column layout: text on the left, images on the right */
#knife-switch .detail-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: start;
}

#knife-switch .detail-copy { min-width: 0; }

/* Right column: 2-column grid, first image spans the full width */
#knife-switch .detail-images.images-3.knife-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  align-self: start;
}

#knife-switch .detail-images.images-3.knife-photos figure:first-child { grid-column: 1 / -1; }

/* Each figure is a centered box without extra background or padding */
#knife-switch .detail-images.images-3.knife-photos figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 16px;
  overflow: visible;
}

/* Image size is capped, ratio is kept, nothing is cropped, corners are rounded */
#knife-switch .detail-images.images-3.knife-photos img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 440px;
  object-fit: contain;
  background: transparent;
  border-radius: 16px;
  clip-path: inset(0 round 16px);
}

#knife-switch .detail-images.images-3.knife-photos figure:not(:first-child) img { max-height: 340px; }

/* Captions sit centered below each image */
#knife-switch .knife-photos figcaption {
  display: block;
  position: static;
  margin: 8px 0 0;
  padding: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #232926;
}

/* ERDA report rows: small report sheet on the left, note on the right */
#erda-reports .erda-pair {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}

#erda-reports .erda-sheet {
  margin: 0;
  width: 100%;
  max-width: 300px;
}

#erda-reports .erda-sheet img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  background: #fff;
}

/* Tablet and mobile: text first, images below */
@media (max-width: 1000px) {
  #knife-switch .detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #knife-switch .detail-images.images-3.knife-photos img { max-height: 380px; }
  #knife-switch .detail-images.images-3.knife-photos figure:not(:first-child) img { max-height: 280px; }
}

@media (max-width: 760px) {
  #knife-switch .detail-images.images-3.knife-photos { gap: 14px; }
  #knife-switch .detail-images.images-3.knife-photos img { max-height: 300px; }
  #knife-switch .detail-images.images-3.knife-photos figure:not(:first-child) img { max-height: 200px; }

  #erda-reports .erda-pair {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #erda-reports .erda-sheet { max-width: 100%; }
}
/* =====================================================
   Gallery slider: stop the "ghost" photo (keep this block at the END of the file)
   In a gallery with fewer than 7 photos, the photo that wraps from one end of the row
   to the other used to glide across the stage behind the active photo on every move.
   A fully faded-out photo now stays invisible until it has reached its new place.
   ===================================================== */
.gallery-section .carousel.enhanced .carousel-slide {
  transition: transform .75s ease, opacity .75s ease, filter .75s ease, visibility 0s linear .75s;
}

.gallery-section .carousel.enhanced .carousel-slide[style*="opacity: 0;"] {
  visibility: hidden;
  transition: transform .75s ease, opacity .75s ease, filter .75s ease, visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-section .carousel.enhanced .carousel-slide,
  .gallery-section .carousel.enhanced .carousel-slide[style*="opacity: 0;"] { transition: none; }
}


/* =====================================================
   Client changes, November 2026 (keep this block at the END of the file)
   ===================================================== */

/* ---------- Sheet Metal page: closing "Discuss your requirement" panel ---------- */
.requirement-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 28px;
  padding: 32px 36px;
  background: #f8f8fa;
  border: 1px solid #d7dbe3;
  border-radius: 16px;
}

.requirement-cta h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.2vw, 30px);
  letter-spacing: -.4px;
}

.requirement-cta p {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  max-width: 760px;
  color: #232323;
}

.requirement-cta .button {
  flex: none;
  border-radius: 12px;
}

@media (max-width: 760px) {
  .requirement-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
  }
}

/* ---------- About page: people cards with portraits ---------- */
.people-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 36px;
}

.people-grid article {
  display: grid;
  grid-template-columns: clamp(200px, 40%, 260px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 32px;
  background: #fff;
  border: 1px solid #e4e6ea;
  border-radius: 20px;
  box-shadow: 0 6px 24px #1d1d1f08;
}

.people-grid .portrait {
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: #f4f5f7;
}

.people-grid .portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
}

.people-grid .person-copy { min-width: 0; }

.people-grid .person-copy .eyebrow {
  margin: 0 0 6px;
  font-size: 12px !important;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.people-grid h3 {
  margin: 0 0 14px;
  font-size: 29px;
}

.people-grid p:not(.eyebrow) { margin-top: 14px; }

@media (max-width: 1100px) {
  .people-grid { gap: 24px; }
  .people-grid article { gap: 22px; padding: 24px; }
}

/* Phones: one card per row, portrait as a centred square above the text */
@media (max-width: 760px) {
  .people-grid { grid-template-columns: 1fr; gap: 20px; }
  .people-grid article { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .people-grid .portrait { width: min(100%, 320px); aspect-ratio: 1 / 1; margin: 0 auto; border-radius: 18px; }
  .people-grid .portrait img { border-radius: 18px; object-position: center 20%; }
}

/* ---------- Mechanical Assemblies page: conceptual CAD images in the zig-zag ---------- */
/* Every CAD figure is the same rounded white card, so the corners and sizes stay consistent. */
.zigzag-media.cad {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid #e4e6ea;
  border-radius: 24px;
  overflow: hidden;
}

.zigzag-media.cad img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 10px;
  background: #fff;
  border-radius: 24px 24px 0 0;
  clip-path: none;
}

/* "The image is only conceptual CAD design." – light, small caption */
.zigzag-media .cad-note {
  align-self: stretch;
  padding: 0 14px 12px;
  font-size: 12px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: .2px;
  line-height: 1.4;
  color: #7a7f87;
  text-align: center;
}

@media (max-width: 1000px) {
  .zigzag-media.cad { max-width: 440px; margin-inline: auto; }
}

/* Closing panel with a list (Mechanical Assemblies) */
.requirement-cta-detailed { align-items: center; }
.requirement-cta p + p { margin-top: 12px; }

.requirement-cta .requirement-cta-label {
  margin-top: 14px;
  font-weight: 650;
  color: #232926;
}

.requirement-cta-list {
  columns: 2;
  column-gap: 32px;
  margin: 8px 0 4px;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.7;
  color: #232323;
}

.requirement-cta-list li {
  margin: 4px 0;
  padding-left: 2px;
  break-inside: avoid;
}

@media (max-width: 760px) {
  .requirement-cta-list { columns: 1; }
}
