/* ==========================================================================
   BON JEU — Our Story
   Loads on top of product.css, which owns the palette, nav and footer.
   Two columns: the writing on the left, the pictures on the right, closed by
   a full-bleed navy promise band.
   ========================================================================== */

/* This page's nav carries the fuller set from the comp and a cart icon. */
.nav--story { border-bottom: 1px solid var(--rule); }
/* A bilingual nav is clutter rather than a device. */
.nav--story .alt { display: none; }
.nav--story .nav__links { gap: clamp(18px, 2.4vw, 40px); margin: 0 auto; }
.nav--story .nav__links a[aria-current='page'] {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}

.nav__cart {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.nav__cart-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rule);
  border-radius: 50%;
}
.nav__cart-icon svg {
  width: 15px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------------------------------------------- grid */

.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  /* Full-bleed: the page runs to the gutters rather than sitting in a
     centred column, so the picture column keeps its scale on wide screens. */
  gap: clamp(32px, 4.5vw, 96px);
  padding: clamp(28px, 3.4vw, 60px) var(--gutter) clamp(48px, 5vw, 96px);
  align-items: start;
}

/* ------------------------------------------------------------------- text */

.story__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.story__title {
  margin-top: 22px;
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-transform: uppercase;
}
.story__title span { display: block; }

.story__title-alt {
  margin-top: 14px;
  font-size: clamp(20px, 2.3vw, 32px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink-mute);
}
.story__title-alt span { display: block; }

.story__rule {
  display: block;
  width: 34px;
  height: 2px;
  margin: clamp(24px, 3vw, 40px) 0 clamp(22px, 2.6vw, 34px);
  background: var(--ink);
}

.story__copy {
  max-width: 46ch;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.62;
  color: rgba(17, 46, 103, 0.86);
}

.story__pull {
  margin-top: clamp(24px, 3vw, 38px);
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.story__pull span { display: block; }

/* Pillars ---------------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(28px, 3.4vw, 46px);
  border: 1px solid var(--rule);
  list-style: none;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: clamp(20px, 2.2vw, 30px) 12px;
  text-align: center;
}
.pillar + .pillar { border-left: 1px solid var(--rule); }

.pillar__icon svg {
  width: clamp(30px, 3vw, 40px);
  height: auto;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar__label {
  font-size: 10px;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--ink-soft);
  max-width: 16ch;
}

/* ------------------------------------------------------------------ media */

.story__hero {
  background: var(--white);
  /* Square, matching the photograph: a 4:3 frame cropped the machine head
     and the hands, which are the whole point of the shot. */
  aspect-ratio: 1;
  overflow: hidden;
}
.story__hero img { width: 100%; height: 100%; object-fit: cover; }

.story__trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.2vw, 18px);
  margin-top: clamp(10px, 1.2vw, 18px);
}

.tile-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--white);
}
.tile-img img { width: 100%; height: 100%; object-fit: cover; }

/* The caption sits on the picture, so it needs its own ground to stay
   readable regardless of what is behind it. */
.tile-img figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px clamp(10px, 1.2vw, 18px) clamp(14px, 1.4vw, 20px);
  background: linear-gradient(to top, rgba(6, 18, 44, 0.78), rgba(6, 18, 44, 0));
  color: var(--white);
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}
.tile-img figcaption .alt { color: rgba(255, 255, 255, 0.66); }

/* --------------------------------------------------------------- promise */

.promise {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(30px, 3.6vw, 52px) var(--gutter);
}

.promise__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 60px);
  list-style: none;
}

.promise__item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: clamp(12px, 1.2vw, 20px);
  align-items: center;
}

.promise__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: clamp(42px, 3.4vw, 54px);
  aspect-ratio: 1;
  border: 1px solid rgba(244, 240, 230, 0.45);
  border-radius: 50%;
}
.promise__icon svg {
  width: 54%;
  fill: none;
  stroke: var(--cream);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promise__name {
  align-self: end;
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.promise__copy {
  align-self: start;
  margin-top: 4px;
  font-size: clamp(11px, 0.9vw, 13px);
  line-height: 1.5;
  color: rgba(244, 240, 230, 0.74);
}
.promise__copy span { display: block; }
.promise__copy .alt { color: rgba(244, 240, 230, 0.5); }

/* ------------------------------------------------------------------ mobile */

@media (max-width: 1080px) {
  .story__grid { grid-template-columns: 1fr; }
  .promise__row { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .nav--story .nav__links { gap: 16px; font-size: 10px; }
}

@media (max-width: 700px) {
  .nav--story { flex-wrap: wrap; row-gap: 14px; }
  .nav--story .nav__links { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--rule); }
  .story__trio { grid-template-columns: 1fr; }
  .tile-img { aspect-ratio: 16 / 10; }
  .promise__row { grid-template-columns: 1fr; }
}
