/* =============================================================================
   About page: panel hero, story tiles, the text-fill manifesto (set piece),
   Approved Supplier Network seal and the up-to-date chips.
   Default styles show the finished page; about-fill.js adds the motion.
   ========================================================================== */

/* ------------------------------------------------------------------- hero */
/* A solid pine panel of copy sits over the Cheltenham photo: on desktop it
   runs the full height on the left, on phones it sits along the bottom. */
.ahero {
  position: relative; isolation: isolate; overflow: clip; color: #fff;
  min-height: 100svh; display: grid; align-items: end; background: var(--pine);
}
.ahero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12,59,39,.62) 0%, rgba(12,59,39,0) 26%),
    linear-gradient(0deg, rgba(12,59,39,.5) 0%, rgba(12,59,39,0) 30%);
}
.ahero-panel {
  position: relative; z-index: 1; overflow: clip; isolation: isolate;
  background: var(--pine);
  padding: clamp(1.8rem, 6vw, 2.8rem) var(--gut) clamp(2rem, 5vh, 3rem);
}
.ahero-panel > .grain { z-index: 0; }
.ahero-copy { position: relative; z-index: 1; }
.ahero-mark {
  position: absolute; z-index: 0; right: -16%; bottom: -14%; width: 72%; height: auto;
  color: var(--mint-deep); opacity: .1; pointer-events: none;
}
.ahero-edge {
  position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--tick), var(--mint-deep)); transform-origin: left center;
}
.ahero .h1 { font-size: clamp(2.3rem, min(4.4vw, 7.6vh), 4.6rem); margin-bottom: .34em; }
.ahero .lead { color: rgba(255,255,255,.9); margin-bottom: 0; }
.ahero .phero-btns { margin-top: clamp(1.1rem, min(2.6vw, 3vh), 2rem); }
.ahero-chip { position: absolute; z-index: 2; right: var(--gut); top: clamp(96px, 13vh, 120px); }

@media (min-width: 1000px) {
  .ahero { grid-template-columns: auto minmax(0, 1fr); align-items: stretch; }
  .ahero-panel {
    --sx: max(var(--gut), calc((100vw - 1440px) / 2));
    --px: clamp(40px, 4.5vw, 84px);
    width: calc(var(--sx) + min(40vw, 640px) + var(--px));
    padding: clamp(110px, min(15vw, 16vh), 170px) var(--px) clamp(2.2rem, 6vh, 4.2rem) var(--sx);
    display: flex; flex-direction: column; justify-content: center;
  }
  .ahero-edge {
    left: auto; right: 0; top: 0; bottom: 0; width: 4px; height: auto;
    background: linear-gradient(180deg, var(--tick), var(--mint-deep)); transform-origin: center top;
  }
  .ahero-chip { top: auto; right: max(var(--gut), calc((100vw - 1440px) / 2)); bottom: clamp(1.4rem, 4vh, 2.6rem); }
}

/* ------------------------------------------------------------- story tiles */
.ab-tiles { display: grid; gap: clamp(14px, 1.6vw, 22px); }
@media (min-width: 640px) { .ab-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ab-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ab-tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: clamp(230px, 32vh, 300px);
  padding: clamp(22px, 2.2vw, 32px); border-radius: var(--r-md);
  background: var(--paper); border: 1px solid rgba(12,59,39,.07);
  box-shadow: 0 30px 55px -38px rgba(12,59,39,.6);
  transition: box-shadow .4s;
}
.ab-tile:hover { box-shadow: 0 40px 70px -36px rgba(12,59,39,.72); }
.ab-ico {
  width: 58px; height: 58px; border-radius: 18px; flex: none;
  display: grid; place-items: center; margin-bottom: auto;
  background: var(--mint); color: var(--tick-dark);
  transition: background-color .35s, color .35s;
}
.ab-tile:hover .ab-ico { background: var(--tick); color: #fff; }
.ab-ico svg { width: 29px; height: 29px; }
.ab-tile h3 { margin: 1.5rem 0 .45rem; font-size: clamp(1.25rem, 1.6vw, 1.5rem); }
.ab-tile p { margin: 0; font-size: 1.0625rem; line-height: 1.5; color: rgba(14,21,18,.74); }

.ab-tile-pine { background: var(--pine); color: #fff; border-color: transparent; justify-content: space-between; }
.ab-tile-pine p { color: rgba(255,255,255,.86); position: relative; z-index: 1; }
.ab-n {
  position: relative; z-index: 1; display: block;
  font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96;
  font-size: clamp(3rem, 4.6vw, 4rem); line-height: .95; letter-spacing: -.04em; color: #fff;
  text-decoration: underline; text-decoration-color: var(--honey);
  text-decoration-thickness: .08em; text-underline-offset: .14em;
}
.ab-tile-mark {
  position: absolute; z-index: 0; right: -18%; bottom: -22%; width: 78%; height: auto;
  color: var(--mint-deep); opacity: .14; pointer-events: none;
}

/* --------------------------------------------------------- the manifesto */
.mf { overflow: clip; }
.mf-grid { position: relative; display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.mf-copy { position: relative; z-index: 1; }
.mf-media { position: relative; z-index: 2; order: -1; }
@media (min-width: 1024px) {
  .mf-grid { grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); }
  .mf-media { order: 2; }
}
.mf-text {
  margin: 0 0 .7em;
  font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96;
  font-size: clamp(1.75rem, 3vw, 3rem); line-height: 1.12; letter-spacing: -.028em;
  color: var(--ink);
}
.mf-w { color: var(--ink); }
.mf-k { color: var(--tick-dark); }
.mf-note { color: rgba(14,21,18,.78); margin-bottom: clamp(1.1rem, 2vw, 1.6rem); }

.mf-photo {
  position: relative; z-index: 2; margin: 0; overflow: hidden;
  border-radius: var(--r-lg); background: var(--pine);
  aspect-ratio: 1600 / 1073; width: 100%; max-height: var(--media-cap);
  transform-origin: 50% 50%;
}
.mf-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.mf-slab, .mf-line { position: absolute; inset: 0; border-radius: var(--r-lg); pointer-events: none; }
.mf-slab { z-index: 0; background: var(--mint); transform: translate(calc(var(--off) * 1.9), calc(var(--off) * 1.9)); }
.mf-line { z-index: 1; border: 1px solid var(--tick); transform: translate(var(--off), var(--off)); }

/* pinned scene (desktop, full motion): one screen, copy beside the framed photo */
@media (min-width: 1024px) {
  .mf.is-pinned { min-height: 100vh; padding-block: 0; padding-top: 80px; display: grid; align-items: center; }
}

/* ------------------------------------------------------ introduction film */
/* The video column takes the larger share so the presenter and on-screen titles stay readable;
   its height comes from the width (16:9) and is capped from the viewport height. */
.av-grid { display: grid; gap: clamp(2.4rem, 5vw, 4.5rem); align-items: center; }
.av-copy > p:not(.btn-row) { color: rgba(14,21,18,.78); font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
.av-copy .ticks { margin: 0 0 clamp(1.4rem, 2.6vw, 2rem); }
.av-media { position: relative; width: min(100%, calc(min(64vh, 640px) * 16 / 9)); justify-self: center; }
.av-slab, .av-line { position: absolute; inset: 0; border-radius: var(--r-lg); pointer-events: none; }
.av-slab { z-index: 0; background: var(--mint); transform: translate(calc(var(--off) * 1.9), calc(var(--off) * 1.9)); }
.av-line { z-index: 1; border: 1px solid var(--tick); transform: translate(var(--off), var(--off)); }
.av-frame {
  position: relative; z-index: 2; aspect-ratio: 16 / 9; overflow: clip;
  border-radius: var(--r-lg); background: var(--pine);
  box-shadow: 0 40px 70px -40px rgba(12,59,39,.6);
}
.av-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; margin: 0; padding: 0; display: block; }
/* the chip sits on the top edge: the player's controls run along the bottom */
.av-chip { position: absolute; z-index: 4; left: -6px; top: clamp(-24px, -1.7vw, -18px); margin: 0; }
@media (min-width: 980px) {
  .av-grid { grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); }
  .av-media { order: 1; }
  .av-copy { order: 2; }
  .av-chip { left: -16px; }
}

/* ------------------------------------------------ Approved Supplier Network */
#approved { padding-block: clamp(3rem, min(6vw, 7vh), 5.5rem); }
.asn-media { position: relative; }
.asn-seal-wrap {
  position: absolute; z-index: 6; right: clamp(4px, 1vw, 12px); top: clamp(-30px, -2.2vw, -14px);
  width: clamp(104px, 10.5vw, 148px); aspect-ratio: 1; display: block;
}
.asn-seal { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 18px 28px rgba(0,0,0,.35)); }
.asn-seal-bg { fill: var(--honey); }
.asn-seal-in { fill: #FBD57E; stroke: rgba(12,59,39,.28); stroke-width: 1.2; }
.asn-seal-txt { font: 700 11.5px/1 var(--body); fill: var(--pine); }
.asn-seal-tick { fill: none; stroke: var(--pine); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.asn-rows { margin: clamp(1rem, 2vw, 1.5rem) 0 clamp(1.4rem, 2.6vw, 2rem); }
.asn-rows .detail-row { padding-block: clamp(.75rem, 1.3vw, 1rem); }
.asn-rows .detail-row h3 { margin: .2rem 0 .25rem; }
.asn-ico { color: var(--tick-dark); }
.asn-ico svg { width: 26px; height: 26px; }

/* ------------------------------------------------------------ up to date */
.ud-media { position: relative; }
.ud-chip { position: absolute; z-index: 5; }
.ud-chip-1 { left: clamp(8px, 1vw, 12px); top: 22px; }
.ud-chip-2 { right: clamp(8px, 1vw, 12px); bottom: 30px; }
@media (min-width: 980px) {
  .ud-chip-1 { left: -16px; }
  .ud-chip-2 { right: -10px; }
}

@media (prefers-reduced-motion: reduce) {
  .asn-seal-wrap, .mf-photo { transform: none !important; }
}

/* nothing on this page (rotating seal, floating chips) may widen it */
.page-about #main > section { overflow-x: clip; }
