/* HI5 About page. Uses HI5 tokens from header.css with fallbacks. */
.hi5-about {
  --ab-ink: var(--hi5-ink, #000);
  --ab-soft: var(--hi5-ink-soft, #4D4E4E);
  --ab-surface: var(--hi5-surface, #F5F5F5);
  --ab-line: var(--hi5-line, #E3E3E3);
  --ab-accent: var(--hi5-accent, #EB2027);
  --ab-radius: var(--hi5-r-sm, 4px);
  --ab-pad: var(--hi5-pad, clamp(16px, 2.4vw, 36px));
  --ab-max: 1200px;

  color: var(--ab-ink);
  font-family: var(--hi5-font, system-ui, sans-serif);
  font-size: 17px;
  line-height: 1.65;
}
.hi5-about *, .hi5-about *::before, .hi5-about *::after { box-sizing: border-box; }
.hi5-about p { margin: 0 0 1em; }
.hi5-about p:last-child { margin-bottom: 0; }

.hi5-about__wrap {
  width: 100%;
  max-width: var(--ab-max);
  margin: 0 auto;
  padding: 0 var(--ab-pad);
}
.hi5-about__section { padding: clamp(48px, 7vw, 96px) 0; }
.hi5-about__section--tint { background: #FFFFFF; }

.hi5-about__eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--ab-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hi5-about h1,
.hi5-about h2,
.hi5-about h3 { margin: 0 0 .5em; color: var(--ab-ink); font-family: inherit; letter-spacing: -0.015em; }
.hi5-about h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; line-height: 1.05; }
.hi5-about h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.15; }
.hi5-about h3 { font-size: clamp(19px, 1.6vw, 22px); font-weight: 700; line-height: 1.25; }

/* Images: specific enough to beat theme rules on .entry-content img */
body .hi5-about img.hi5-about__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  border-radius: 12px;
}

/* Hero */
.hi5-about__hero { padding: clamp(32px, 5vw, 72px) 0 clamp(40px, 6vw, 80px); }
.hi5-about__hero-grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hi5-about__lead { max-width: 34ch; color: var(--ab-soft); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; }
.hi5-about__hero-media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; }
.hi5-about__caption { margin-top: 10px; color: var(--ab-soft); font-size: 14px; }

/* Facts strip */
.hi5-about__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ab-line);
  border-bottom: 1px solid var(--ab-line);
}
.hi5-about__fact { padding: 22px 12px; text-align: center; }
.hi5-about__fact + .hi5-about__fact { border-left: 1px solid var(--ab-line); }
.hi5-about__fact strong { display: block; font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; line-height: 1.1; }
.hi5-about__fact span { display: block; margin-top: 6px; color: var(--ab-soft); font-size: 14px; }

/* Story */
.hi5-about__story { display: grid; gap: clamp(20px, 3vw, 48px); }
.hi5-about__story-body { max-width: 62ch; }

/* Origins */
.hi5-about__cards { display: grid; gap: 20px; margin-top: 32px; }
.hi5-about__card {
  padding: clamp(24px, 3vw, 36px);
  background: #fff;
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-radius);
}
.hi5-about__card p { color: var(--ab-soft); }
.hi5-about__flag { display: flex; gap: 4px; margin-bottom: 18px; }
.hi5-about__flag i { display: block; width: 18px; height: 6px; border-radius: 1px; }

/* Team */
.hi5-about__team { display: grid; gap: clamp(28px, 4vw, 48px); margin-top: 32px; }
.hi5-about__person { margin: 0; }
.hi5-about__portrait { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; background: var(--ab-surface); }
.hi5-about__person figcaption { padding-top: 16px; }
.hi5-about__person h3 { margin-bottom: 2px; }
.hi5-about__role { display: block; margin-bottom: 10px; color: var(--ab-soft); font-size: 14px; font-weight: 600; }
.hi5-about__person p { color: var(--ab-soft); font-size: 16px; }

/* Visit */
.hi5-about__visit {
  display: grid;
  gap: 28px;
  padding: clamp(28px, 4vw, 56px);
  background: var(--ab-ink);
  color: #fff;
  border-radius: var(--ab-radius);
}
.hi5-about__visit h2 { color: #fff; }
.hi5-about__visit .hi5-about__eyebrow { color: #fff; opacity: .7; }
.hi5-about__contact { margin: 0; padding: 0; list-style: none; }
.hi5-about__contact li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.hi5-about__contact li:last-child { border-bottom: 0; }
.hi5-about__contact span { display: block; color: rgba(255,255,255,.65); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.hi5-about .hi5-about__contact a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.hi5-about .hi5-about__contact a:hover { text-decoration-color: var(--ab-accent); }

.hi5-about__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hi5-about a.hi5-about__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid #fff;
  border-radius: var(--hi5-r-pill, 999px);
  background: #fff;
  color: var(--ab-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.hi5-about a.hi5-about__btn:hover { background: var(--ab-accent); border-color: var(--ab-accent); color: #fff; }
.hi5-about a.hi5-about__btn--ghost { background: transparent; color: #fff; }
.hi5-about a:focus-visible { outline: 2px solid var(--ab-accent); outline-offset: 3px; }

@media (min-width: 760px) {
  .hi5-about__cards,
  .hi5-about__team { grid-template-columns: repeat(2, 1fr); }
  .hi5-about__visit { grid-template-columns: 1.1fr 1fr; align-items: start; }
}
@media (min-width: 960px) {
  .hi5-about__hero-grid { grid-template-columns: 5fr 7fr; }
  .hi5-about__story { grid-template-columns: 4fr 7fr; }
  .hi5-about__team { max-width: 880px; }
}
@media (max-width: 560px) {
  .hi5-about__facts { grid-template-columns: 1fr; }
  .hi5-about__fact + .hi5-about__fact { border-left: 0; border-top: 1px solid var(--ab-line); }
}
@media (prefers-reduced-motion: reduce) {
  .hi5-about a.hi5-about__btn { transition: none; }
}

/* ---------- Full canvas: escape Astra's boxed container ---------- */
body.hi5-flush #content > .ast-container,
body.hi5-flush .site-content > .ast-container {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}
body.hi5-flush #primary,
body.hi5-flush .site-main,
body.hi5-flush article.ast-article-single {
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}
body.hi5-flush .entry-content,
body.hi5-flush .entry-content.clear { margin: 0; padding: 0; max-width: none; }
body.hi5-flush .entry-header { display: none; }
body.hi5-flush #secondary { display: none; }
body.hi5-flush .ast-container::before,
body.hi5-flush .ast-container::after { content: none; }

/* The tinted band and the dark panel now reach the edges. */
.hi5-about__section--tint { width: 100%; }

/* Keep the last section clear of the footer. */
.hi5-about > section:last-of-type { padding-bottom: clamp(48px, 7vw, 96px); }