/* About page. Colours and Inter font come from .cn-shell in the Header & Footer plugin.
   Sizes follow SITE-RULES.md §14; breakpoints: phone < 768px, tablet 768–1023px, desktop ≥ 1024px. */

.cn-about {
  --cn-section-space: 96px;
  background: #fff;
  color: var(--cn-text);
}
.cn-about *,
.cn-about *::before,
.cn-about *::after { box-sizing: border-box; }
.cn-about :is(h2, h3, p, ul, figure) { margin: 0; }
.cn-about :is(h2, h3) { color: var(--cn-ink); font-family: inherit; font-weight: 600; text-wrap: balance; }
.cn-about h2 { font-size: 40px; line-height: 1.25; letter-spacing: -.02em; }
.cn-about h3 { font-size: 24px; line-height: 1.3; letter-spacing: -.01em; }
.cn-about p { font-size: 16px; line-height: 1.7; }
.cn-about .cn-supporting-text {
  font-size: var(--cn-font-size-supporting, 14px);
  line-height: 1.6;
  color: var(--cn-muted);
}

.cn-about-section { padding-block: var(--cn-section-space); background: #fff; }
.cn-about-surface { background: var(--cn-surface); }
.cn-about-tint { background: var(--cn-tint); }

.cn-about .cn-about-eyebrow {
  margin-bottom: 12px;
  color: var(--cn-blue);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cn-about .cn-about-eyebrow--compact { margin-bottom: 6px; }

.cn-about-heading-center {
  max-width: 1040px;
  margin: 0 auto 48px;
  text-align: center;
}

.cn-about-section-cta { margin-top: 32px; }
.cn-about-section-cta--center { text-align: center; margin-top: 40px; }

/* Bare inline SVG icons (no background box) */
.cn-about .cn-about-bare-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cn-blue);
  flex-shrink: 0;
}
.cn-about .cn-about-bare-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Shared media & placeholder (matches home-sections.css / SITE-RULES §12.1) */
.cn-about .cn-home-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--cn-media-ratio, 4 / 3);
  border-radius: 8px;
  border: 1px dashed #b8c4d4;
  background: #f7f9fc;
}
.cn-about .cn-home-media:has(> img) {
  border-style: solid;
  border-color: var(--cn-line);
}
.cn-about .cn-home-media__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.cn-about .cn-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  background-color: #f7f9fc;
  background-image: radial-gradient(#cfd9e5 1px, transparent 1px);
  background-size: 16px 16px;
  color: var(--cn-text);
  text-align: center;
}
.cn-about .cn-img-placeholder__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--cn-line);
  border-radius: 8px;
  background: #fff;
  color: var(--cn-blue);
}
.cn-about .cn-img-placeholder__icon svg { width: 20px; height: 20px; }
.cn-about .cn-img-placeholder__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cn-ink);
}
.cn-about .cn-img-placeholder__desc {
  max-width: 28ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--cn-muted);
}

/* Section 1: Who We Are */
.cn-about-who-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 56px;
  align-items: center;
}
.cn-about-who-copy h2 { margin-bottom: 24px; }
.cn-about-lead {
  margin-bottom: 16px;
  color: var(--cn-ink);
  font-size: 18px;
  line-height: 1.65;
}
.cn-about-who-copy p + p { margin-top: 16px; }

/* Section 2: How We Work (Left image + Right 2x2 grid) */
.cn-about-work-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
}
.cn-about-process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.cn-about-process-card {
  padding: 24px;
  border: 1px solid var(--cn-line);
  border-radius: 8px;
  background: #fff;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.cn-about-process-top {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.cn-about .cn-about-process-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.35;
  transition: color .2s ease;
}

/* Section 3: Pre-Shipment QC (clean editorial rows, no boxes, balanced heights) */
.cn-about-qc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.cn-about-qc-copy h2 { margin-bottom: 28px; }
.cn-about-qc-list {
  border-top: 1px solid var(--cn-line);
}
.cn-about-qc-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--cn-line);
  border-radius: 0;
  transition: background-color .2s ease, border-color .2s ease, border-radius .2s ease, box-shadow .2s ease;
}
.cn-about-qc-icon { margin-top: 2px; }
.cn-about-qc-row-copy { min-width: 0; }
.cn-about .cn-about-qc-row-copy h3 {
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.35;
  transition: color .2s ease;
}
.cn-about-qc-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.cn-about-qc-media-top { grid-column: 1 / -1; }

/* Section 4: What We Supply */
.cn-about-supply-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.cn-about-supply-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--cn-line);
  border-radius: 8px;
  background: #fff;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.cn-about-supply-media .cn-home-media {
  border: 0;
  border-bottom: 1px solid var(--cn-line);
  border-radius: 0;
}
.cn-about-supply-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}
.cn-about .cn-about-supply-body h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.35;
  transition: color .2s ease;
}
.cn-about-supply-body .cn-supporting-text {
  flex: 1;
  margin-bottom: 16px;
}

.cn-about a.cn-about-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cn-blue);
  text-decoration: none;
  transition: color .2s ease;
}
.cn-about a.cn-about-text-link:hover {
  color: var(--cn-blue-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cn-about a.cn-about-text-link:focus-visible {
  outline: 3px solid var(--cn-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Section 5: Global Client Photos (4-col Portrait Gallery) */
.cn-about-clients-grid-portrait {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.cn-about-photo-tile {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.cn-about-photo-tile--overlay::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(11, 31, 51, .72), transparent);
  pointer-events: none;
  z-index: 1;
}
.cn-about-photo-overlay-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  z-index: 2;
}

/* Section 6: Bottom CTA & Shared Primary/Secondary Buttons */
.cn-about-cta-box {
  max-width: 1040px;
  margin-inline: auto;
  text-align: center;
}
.cn-about-cta-box h2 { margin-bottom: 28px; }
.cn-about-cta-box p { margin-bottom: 28px; }
.cn-about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.cn-about a.cn-primary,
.cn-about a.cn-about-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.cn-about a.cn-primary {
  background: var(--cn-blue);
  color: #fff;
}
.cn-about a.cn-primary:hover { background: var(--cn-blue-hover); color: #fff; }
.cn-about a.cn-about-secondary-btn {
  border: 1px solid var(--cn-blue);
  background: #fff;
  color: var(--cn-blue);
}
.cn-about a.cn-about-secondary-btn:hover { background: var(--cn-tint); }
.cn-about a.cn-primary:focus-visible,
.cn-about a.cn-about-secondary-btn:focus-visible {
  outline: 3px solid var(--cn-blue);
  outline-offset: 3px;
}

@media (hover: hover) {
  .cn-about-process-card:hover,
  .cn-about-supply-card:hover,
  .cn-about-photo-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(11, 31, 51, .1);
  }
  .cn-about-process-card:hover,
  .cn-about-supply-card:hover {
    border-color: #cbd5e1;
  }
  .cn-about-process-card:hover h3,
  .cn-about-supply-card:hover h3 { color: var(--cn-blue); }
  .cn-about-supply-card:hover .cn-home-media__image,
  .cn-about-photo-tile:hover .cn-home-media__image { transform: scale(1.03); }
  .cn-about-qc-row:hover {
    background: var(--cn-tint);
    border-radius: 8px;
    border-bottom-color: transparent;
    box-shadow: inset 3px 0 0 var(--cn-blue);
  }
  .cn-about-qc-row:hover h3 { color: var(--cn-blue); }
}

/* Entrance animation (§16) */
.cn-about [data-cn-reveal].cn-reveal-pending { opacity: 0; transform: translateY(16px); }
.cn-about [data-cn-reveal].cn-reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity .55s cubic-bezier(.22, 1, .36, 1), transform .55s cubic-bezier(.22, 1, .36, 1);
}

/* Tablet: 768px–1023px */
@media (width < 1024px) {
  .cn-about { --cn-section-space: 64px; }
  .cn-about h2 { font-size: 34px; }
  .cn-about h3 { font-size: 22px; }
  .cn-about-heading-center { margin-bottom: 36px; }
  .cn-about-who-grid,
  .cn-about-work-layout,
  .cn-about-qc-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .cn-about-process-grid,
  .cn-about-supply-grid,
  .cn-about-clients-grid-portrait {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phone: < 768px */
@media (width < 768px) {
  .cn-about { --cn-section-space: 48px; }
  .cn-about h2 { font-size: 28px; }
  .cn-about h3 { font-size: 20px; }
  .cn-about-lead { font-size: 16px; }
  .cn-about-heading-center { margin-bottom: 28px; }
  .cn-about-process-grid,
  .cn-about-supply-grid,
  .cn-about-clients-grid-portrait,
  .cn-about-qc-media {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .cn-about-process-card { padding: 20px; }
  .cn-about a.cn-about-text-link { min-height: 44px; }
  .cn-about-cta-actions { flex-direction: column; }
  .cn-about-cta-actions a.cn-primary,
  .cn-about-cta-actions a.cn-about-secondary-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cn-about [data-cn-reveal].cn-reveal-pending { opacity: 1; transform: none; }
  .cn-about *,
  .cn-about *::before,
  .cn-about *::after { transition: none !important; }
}
