/* ============================================================
   OUR LEGACY — about + track record
   Cream canvas; copy and a 2×2 of promises on the left, the photo on
   the right fading in from the copy, a gold cable over the photo, and
   the stats bar overlapping the bottom of both.
   Phones stack: copy → photo → stats (2×2).
   ============================================================ */
.amdb-story {
  --legacy-cream: #fbf8f2;
  --legacy-disc: #f6ead3;
  --legacy-gold: #a47721;        /* headline gold, 3.8:1 on cream (large text) */
  --legacy-gold-text: #8a6418;   /* small gold text, 5.1:1 */
  --legacy-gold-num: #b07f24;    /* big +/% glyphs, 3.5:1 */
  --legacy-gold-hi: #d9a83e;
  --legacy-ink: #16191c;
  --legacy-body: #4f555b;
  position: relative;
  /* cream breathing room above, so it never butts against the dark Craft banner */
  padding: clamp(40px, 5vw, 80px) 0 clamp(32px, 4vw, 56px);
  background:
    /* faint blueprint grid, bottom-left, like the reference */
    linear-gradient(rgba(185, 138, 46, .05) 1px, transparent 1px) 0 100% / 26px 26px,
    linear-gradient(90deg, rgba(185, 138, 46, .05) 1px, transparent 1px) 0 100% / 26px 26px,
    var(--legacy-cream);
  color: var(--legacy-ink);
  scroll-margin-top: 74px;
  overflow: hidden;
  isolation: isolate;
}
.amdb-story * { box-sizing: border-box; }

.amdb-story__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
}

/* ---------- Copy ---------- */
.amdb-story__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 5vw, 80px) clamp(24px, 2vw, 32px) clamp(96px, 9vw, 132px) max(clamp(24px, 4vw, 70px), calc((100vw - 1560px) / 2 + 70px));
}
.amdb-story__eyebrow {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--legacy-gold-text);
}
.amdb-story__eyebrow span { width: 62px; height: 3px; border-radius: 2px; background: var(--legacy-gold-hi); }
.amdb-story h2 {
  margin: 0 0 22px;
  font-size: clamp(38px, 3.9vw, 60px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.045em;
}
.amdb-story h2 span { color: var(--legacy-gold); }
.amdb-story__intro {
  max-width: 600px;
  margin: 0 0 32px;
  color: var(--legacy-body);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
}
.amdb-story__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 28px;
  max-width: 640px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.amdb-story__list li { display: flex; align-items: center; gap: 18px; }
.amdb-story__icon {
  display: grid;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: var(--legacy-disc);
  color: var(--legacy-ink);
}
.amdb-story__icon svg { width: 32px; height: 32px; }
.amdb-story__list strong { display: block; font-size: 17px; font-weight: 750; letter-spacing: -.02em; line-height: 1.25; }
.amdb-story__list small { display: block; margin-top: 4px; color: var(--legacy-body); font-size: 15px; line-height: 1.4; }
.amdb-story__signature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin: 36px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.amdb-story__signature span { flex: 0 0 100%; width: 74px; max-width: 74px; height: 4px; margin-bottom: 18px; border-radius: 2px; background: var(--legacy-gold-hi); }
.amdb-story__signature b { color: var(--legacy-gold-text); font-weight: 500; }

/* ---------- Photo + cable ---------- */
/* The frame keeps the photo's own shape (never cropped), so the cable —
   drawn in the photo's coordinates — always runs just beneath the shirt logo. */
.amdb-story__visual { position: relative; min-width: 0; align-self: end; aspect-ratio: 1600 / 1289; }
.amdb-story__visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Soft cream fade from the copy into the photo. */
.amdb-story__visual::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 16%;
  background: linear-gradient(90deg, var(--legacy-cream) 8%, rgba(251, 248, 242, .6) 45%, rgba(251, 248, 242, 0));
  pointer-events: none;
}
.amdb-story__cable {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.amdb-story__cable path {
  fill: none;
  stroke: var(--legacy-gold-hi);
  stroke-width: 3.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(233, 184, 72, .75));
}

/* ---------- Stats bar ---------- */
.amdb-story__stats {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1720px, calc(100% - 2 * clamp(16px, 2vw, 32px)));
  margin: -28px auto 0;   /* just kisses the photo's lower edge, as in the reference */
  padding: clamp(22px, 2.2vw, 34px) clamp(16px, 2vw, 40px);
  list-style: none;
  border: 1px solid rgba(185, 138, 46, .14);
  border-radius: 24px;
  background: rgba(255, 253, 249, .96);
  box-shadow: 0 20px 50px rgba(60, 44, 12, .12);
}
.amdb-story__stats li {
  display: flex;
  flex-direction: row;       /* override the generic .stat rule in main.css */
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 4px clamp(8px, 1.5vw, 24px);
}
.amdb-story__stats li + li { border-left: 1px solid rgba(22, 25, 28, .12); }
.amdb-story__stats .amdb-story__icon { flex-basis: 80px; width: 80px; height: 80px; }
.amdb-story__stats .amdb-story__icon svg { width: 38px; height: 38px; }
.amdb-story__stats b { display: flex; align-items: baseline; font-weight: 800; }
.amdb-story__stats .stat__num,
.amdb-story__stats .stat__suffix {
  font-size: clamp(34px, 3.3vw, 54px);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--legacy-ink);
  min-width: 0;
}
.amdb-story__stats .stat__suffix { color: var(--legacy-gold-num); }
.amdb-story__stats small { display: block; margin-top: 6px; color: var(--legacy-body); font-size: clamp(14px, 1.15vw, 19px); white-space: nowrap; }

/* ---------- Laptop ---------- */
@media (max-width: 1250px) {
  .amdb-story__list { gap: 20px 18px; }
  .amdb-story__icon { flex-basis: 54px; width: 54px; height: 54px; }
  .amdb-story__icon svg { width: 28px; height: 28px; }
  .amdb-story__list strong { font-size: 15.5px; }
  .amdb-story__list small { font-size: 13.5px; }
  .amdb-story__stats li { gap: 14px; }
  .amdb-story__stats .amdb-story__icon { flex-basis: 60px; width: 60px; height: 60px; }
  .amdb-story__stats .amdb-story__icon svg { width: 30px; height: 30px; }
}

/* ---------- Tablet & phone: stack ---------- */
@media (max-width: 900px) {
  .amdb-story { scroll-margin-top: 64px; }
  .amdb-story__main { grid-template-columns: 1fr; min-height: 0; }
  .amdb-story__copy { padding: 44px 24px 32px; }
  .amdb-story__visual::before { display: none; }
  .amdb-story__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: -20px;
    padding: 8px 12px;
  }
  .amdb-story__stats li { justify-content: flex-start; padding: 16px 10px; }
  .amdb-story__stats li + li { border-left: 0; }
  .amdb-story__stats li:nth-child(even) { border-left: 1px solid rgba(22, 25, 28, .1); }
  .amdb-story__stats li:nth-child(n + 3) { border-top: 1px solid rgba(22, 25, 28, .1); }
}
@media (max-width: 560px) {
  .amdb-story__copy { padding: 36px 20px 26px; }
  .amdb-story__eyebrow { font-size: 11.5px; gap: 14px; margin-bottom: 14px; }
  .amdb-story__eyebrow span { width: 44px; }
  .amdb-story h2 { font-size: clamp(30px, 8.6vw, 38px); margin-bottom: 14px; }
  .amdb-story__intro { font-size: 15px; margin-bottom: 22px; }
  .amdb-story__list { gap: 16px 12px; }
  .amdb-story__list li { align-items: flex-start; gap: 10px; }
  .amdb-story__icon { flex-basis: 40px; width: 40px; height: 40px; }
  .amdb-story__icon svg { width: 21px; height: 21px; }
  .amdb-story__list strong { font-size: 14px; }
  .amdb-story__list small { font-size: 12.5px; }
  .amdb-story__signature { margin-top: 24px; gap: 6px 14px; font-size: 11px; letter-spacing: .2em; }
  .amdb-story__signature span { margin-bottom: 12px; width: 52px; }
  .amdb-story__stats { width: calc(100% - 32px); border-radius: 18px; }
  .amdb-story__stats li { gap: 10px; padding: 14px 6px; }
  .amdb-story__stats .amdb-story__icon { flex-basis: 40px; width: 40px; height: 40px; }
  .amdb-story__stats .amdb-story__icon svg { width: 21px; height: 21px; }
  .amdb-story__stats .stat__num,
  .amdb-story__stats .stat__suffix { font-size: 28px; }
  .amdb-story__stats small { font-size: 12px; white-space: normal; }
}
