/* Amber page: customer-cases */
/* ===== customer-cases.html ===== */
body[data-page="customer-cases"] {
      --ink: #171513;
      --muted: #6d675f;
      --line: #e7dfd5;
      --paper: #fffaf4;
      --soft: #f5ece1;
      --accent: #4f549d;
      --accent-dark: #3a3f78;
      --purple: #4f549d;
      --shadow: 0 20px 60px rgba(55, 42, 31, .14);
    }
    body[data-page="customer-cases"], body[data-page="customer-cases"] * { box-sizing: border-box; }
    body[data-page="customer-cases"] {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
      color: var(--ink);
      background: var(--paper);
      line-height: 1.5;
    }
    body[data-page="customer-cases"] img { display: block; max-width: 100%; }
    body[data-page="customer-cases"] a { color: inherit; text-decoration: none; }
    body[data-page="customer-cases"] .wrap { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
    body[data-page="customer-cases"] .topbar {
      background: var(--ink);
      color: rgba(255,255,255,.82);
      font-size: 13px;
    }
    body[data-page="customer-cases"] .topbar .wrap {
      min-height: 38px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: clamp(8px, .84vw, 16px);
    }
    body[data-page="customer-cases"] .topbar a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); }
    body[data-page="customer-cases"] header {
      position: sticky;
      top: 0;
      z-index: 20;
      background: rgba(255, 250, 244, .94);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(91, 58, 42, .14);
    }
    body[data-page="customer-cases"] nav {
      min-height: 78px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }
    body[data-page="customer-cases"] .logo img { width: 166px; height: auto; }
    body[data-page="customer-cases"] .links {
      display: flex;
      align-items: center;
      gap: 26px;
      color: var(--accent-dark);
      font-size: 14px;
      font-weight: 650;
    }
    body[data-page="customer-cases"] .nav-actions { display: flex; align-items: center; gap: 10px; }
    body[data-page="customer-cases"] .btn {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 18px;
      border: 1px solid var(--purple);
      border-radius: 4px;
      background: var(--purple);
      color: #fff;
      font-size: 14px;
      font-weight: 750;
      white-space: nowrap;
    }
    body[data-page="customer-cases"] .btn.secondary {
      background: transparent;
      color: var(--accent-dark);
      border-color: rgba(91,58,42,.3);
    }
    body[data-page="customer-cases"] .page-hero {
      min-height: 390px;
      display: grid;
      align-items: end;
      color: #fff;
      background:
        linear-gradient(90deg, rgba(18,13,10,.88), rgba(18,13,10,.45)),
        url("../cta/warehouse-ready-to-ship.png") center / cover no-repeat;
    }
    body[data-page="customer-cases"] .page-hero .wrap { padding: 86px 0 54px; }
    body[data-page="customer-cases"] .eyebrow {
      margin: 0 0 16px;
      color: #f0d7c2;
      font-size: 13px;
      font-weight: 850;
      text-transform: uppercase;
    }
    body[data-page="customer-cases"] h1 {
      max-width: 860px;
      margin: 0;
      font-size: clamp(42px, 6vw, 74px);
      line-height: 1;
    }
    body[data-page="customer-cases"] .hero-copy {
      max-width: 700px;
      margin: 22px 0 0;
      color: rgba(255,255,255,.84);
      font-size: 18px;
    }
    body[data-page="customer-cases"] section { padding: 76px 0; }
    body[data-page="customer-cases"] .module-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 30px;
      margin-bottom: 30px;
    }
    body[data-page="customer-cases"] h2 {
      margin: 0;
      font-size: clamp(30px, 4vw, 50px);
      line-height: 1.08;
    }
    body[data-page="customer-cases"] .module-head p {
      max-width: 470px;
      margin: 0;
      color: var(--muted);
      font-size: 16px;
    }
    body[data-page="customer-cases"] .story-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: clamp(8px, .84vw, 16px);
      align-items: start;
    }
    body[data-page="customer-cases"] .case-card {
      aspect-ratio: 2 / 2.5;
      position: relative;
      display: grid;
      align-content: end;
      overflow: hidden;
      border-radius: 8px;
      background: var(--ink);
      box-shadow: 0 16px 40px rgba(55,42,31,.12);
    }
    body[data-page="customer-cases"] .case-card img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform .35s ease;
    }
    body[data-page="customer-cases"] .case-card:hover img { transform: scale(1.035); }
    body[data-page="customer-cases"] .case-card::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(0deg, rgba(18,13,10,.92), rgba(18,13,10,.1) 68%);
    }
    body[data-page="customer-cases"] .case-content {
      position: relative;
      z-index: 2;
      padding: 22px;
      color: #fff;
    }
    body[data-page="customer-cases"] .case-content span {
      min-height: 30px;
      display: inline-flex;
      align-items: center;
      margin-bottom: 12px;
      padding: 0 10px;
      background: var(--purple);
      color: #fff;
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }
    body[data-page="customer-cases"] .case-content h3 {
      margin: 0;
      font-size: clamp(20px, 2vw, 28px);
      line-height: 1.08;
    }
    body[data-page="customer-cases"] .case-content p {
      margin: 10px 0 0;
      color: rgba(255,255,255,.84);
      font-size: 13px;
    }
    body[data-page="customer-cases"] .photo-section {
      background: #fff;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }
    body[data-page="customer-cases"] .photo-wall {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      grid-auto-rows: 190px;
      grid-auto-flow: dense;
      gap: clamp(8px, .84vw, 16px);
    }
    body[data-page="customer-cases"] .photo-tile {
      position: relative;
      overflow: hidden;
      border-radius: 8px;
      background: var(--ink);
      cursor: zoom-in;
    }
    body[data-page="customer-cases"] .photo-tile.wide { grid-column: span 2; }
    body[data-page="customer-cases"] .photo-tile.tall { grid-row: span 2; }
    body[data-page="customer-cases"] .photo-tile.feature { grid-column: span 2; grid-row: span 2; }
    body[data-page="customer-cases"] .photo-tile img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: .92;
      transition: transform .35s ease, opacity .35s ease;
    }
    body[data-page="customer-cases"] .photo-tile:hover img {
      transform: scale(1.035);
      opacity: 1;
    }
    body[data-page="customer-cases"] .photo-tile::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(0deg, rgba(18,13,10,.58), rgba(18,13,10,.08));
    }
    body[data-page="customer-cases"] .photo-label {
      position: absolute;
      left: 16px;
      right: 16px;
      bottom: 15px;
      z-index: 2;
      color: #fff;
      font-weight: 850;
    }
    body[data-page="customer-cases"] .lightbox {
      position: fixed;
      inset: 0;
      z-index: 60;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 34px;
      background: rgba(18,13,10,.88);
    }
    body[data-page="customer-cases"] .lightbox.is-open { display: flex; }
    body[data-page="customer-cases"] .lightbox img {
      max-width: min(1120px, 94vw);
      max-height: 86vh;
      width: auto;
      height: auto;
      object-fit: contain;
      border-radius: 8px;
      box-shadow: 0 30px 90px rgba(0,0,0,.42);
    }
    body[data-page="customer-cases"] .lightbox button {
      position: absolute;
      top: 22px;
      right: 24px;
      width: 44px;
      height: 44px;
      border: 1px solid rgba(255,255,255,.42);
      border-radius: 50%;
      background: rgba(255,255,255,.1);
      color: #fff;
      font-size: clamp(13px, 1.25vw, 24px);
      font-weight: 700;
      cursor: pointer;
    }
    body[data-page="customer-cases"] .cta {
      background:
        linear-gradient(90deg, rgba(18,13,10,.86), rgba(18,13,10,.56)),
        url("../cta/warehouse-ready-to-ship.png") center / cover no-repeat;
      color: #fff;
    }
    body[data-page="customer-cases"] .cta-panel {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 28px;
      align-items: center;
      padding: 36px;
      border: 1px solid rgba(255,255,255,.22);
      border-radius: 8px;
      background: rgba(18,13,10,.48);
    }
    body[data-page="customer-cases"] .cta h2 { max-width: 760px; }
    body[data-page="customer-cases"] .cta p { max-width: 760px; color: rgba(255,255,255,.82); }
    body[data-page="customer-cases"] footer {
      padding: 28px 0;
      background: var(--ink);
      color: rgba(255,255,255,.7);
      font-size: 13px;
    }
    @media (max-width: 980px) {
      body[data-page="customer-cases"] .links { display: none; }
      body[data-page="customer-cases"] .module-head, body[data-page="customer-cases"] .cta-panel { display: block; }
      body[data-page="customer-cases"] .module-head p { margin-top: 14px; }
      body[data-page="customer-cases"] .story-grid { grid-template-columns: 1fr; }
      body[data-page="customer-cases"] .case-card { aspect-ratio: 4 / 5; }
      body[data-page="customer-cases"] .photo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 230px; }
      body[data-page="customer-cases"] .photo-tile.feature,
      body[data-page="customer-cases"] .photo-tile.wide,
      body[data-page="customer-cases"] .photo-tile.tall { grid-column: auto; grid-row: auto; }
      body[data-page="customer-cases"] .cta .btn { margin-top: 20px; }
    }
    @media (max-width: 640px) {
      body[data-page="customer-cases"] .wrap { width: min(100% - 28px, 1240px); }
      /* unified chrome: stacked topbar/nav override removed */
      body[data-page="customer-cases"] .nav-actions { flex-wrap: wrap; }
      body[data-page="customer-cases"] section { padding: 54px 0; }
      body[data-page="customer-cases"] .photo-wall { grid-template-columns: 1fr; grid-auto-rows: 300px; }
      body[data-page="customer-cases"] .cta-panel { padding: 24px; }
    }


body[data-page="customer-cases"] .story-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
body[data-page="customer-cases"] .case-card {
  min-height: clamp(250px, 25vw, 360px);
  aspect-ratio: auto;
}
body[data-page="customer-cases"] .case-content {
  padding: clamp(16px, 1.45vw, 22px);
}
body[data-page="customer-cases"] .case-content h3,
body[data-page="customer-cases"] .case-content p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
