/* ════════════════════════════════════════════════
   TCP — SHARED CONTENT COMPONENTS
   Bento engagement section (Position A pattern).
   Linked from pages that use this component.
   Edit here, do not duplicate inline.
   ════════════════════════════════════════════════ */

/* ── ENGAGEMENT BENTO (Position A) ── */
.engagement-band {
  padding: 120px 40px;
  border-bottom: 1px solid var(--ink);
}
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: 0;
  border-top: 2px solid var(--ink);
}
.bento-tile {
  position: relative;
  padding: 56px 48px;
  background: var(--paper);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-top: 4px solid var(--green);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.bento-tile:last-child { border-right: none; }
.bento-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: translateY(101%);
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
  z-index: 0;
}
.bento-tile > * { position: relative; z-index: 1; }
.bento-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -20px rgba(26,26,24,0.28);
}
.bento-tile:hover::before { transform: translateY(0); }
.bento-tile:hover .bento-tag { color: var(--bronze); }
.bento-tile:hover .bento-h,
.bento-tile:hover .bento-body,
.bento-tile:hover .bento-list li { color: var(--paper); }
.bento-tile:hover .bento-list li::before { background: var(--bronze); }
.bento-tile:hover .bento-link { color: var(--paper); border-bottom-color: var(--paper); }
.bento-tile:hover .bento-cta-solid { background: var(--paper); color: var(--green); border-color: var(--paper); }

.bento-tag {
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em;
  color: var(--bronze); text-transform: uppercase; font-weight: 500;
  margin-bottom: 22px;
  transition: color .35s ease;
}
.bento-h {
  font-family: var(--f-display); font-weight: 400;
  color: var(--ink);
  letter-spacing: -.018em;
  transition: color .35s ease;
}
.bento-h em { font-style: italic; color: var(--bronze); font-weight: 500; }
.bento-body {
  font-family: var(--f-sans); font-size: 1rem; line-height: 1.65;
  color: var(--ink); margin-top: 18px;
  transition: color .35s ease;
}
.bento-list {
  margin-top: 28px;
  list-style: none;
  padding: 0;
}
.bento-list li {
  font-family: var(--f-sans); font-size: .98rem; line-height: 1.55;
  color: var(--ink); padding: 10px 0 10px 22px;
  position: relative;
  transition: color .35s ease;
}
.bento-list li::before {
  content: '';
  position: absolute; left: 0; top: 19px;
  width: 10px; height: 1px;
  background: var(--ink);
  transition: background .35s ease;
}
.bento-link {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em;
  color: var(--green);
  border-bottom: 1px solid var(--green);
  padding-bottom: 3px; margin-top: auto; align-self: flex-start;
  transition: color .35s ease, border-color .35s ease;
}
/* Supporting tile: enforce a consistent breathing gap above the link.
   margin-top:auto pushes the link to the bottom of the tile (alignment across
   tiles); the support-only padding-top guarantees room above when the body is
   long, so box 1 and 2 don't feel cramped. */
.bento-support .bento-link {
  padding-top: 28px;
}
.bento-support .bento-body {
  margin-bottom: 0;
}
.bento-cta-solid {
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .04em;
  background: var(--green); color: var(--paper);
  padding: 14px 22px; align-self: flex-start;
  border: 1px solid var(--green);
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
  margin-top: 8px;
}
.bento-cta-solid::after { content: '→'; transition: transform .2s; }
.bento-cta-solid:hover::after { transform: translateX(4px); }

/* Hero tile — full width, dominant */
.bento-hero {
  grid-column: span 12;
  padding: 80px 56px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
.bento-hero .bento-h {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 300;
  line-height: 1.02;
}
.bento-hero .bento-h-side {
  display: flex; flex-direction: column;
  gap: 20px;
}
.bento-hero .bento-list { margin-top: 0; }
.bento-hero-actions {
  margin-top: 32px;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}

/* Supporting tiles — three across */
.bento-support {
  grid-column: span 4;
  min-height: 320px;
}
.bento-support .bento-h {
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.18;
}

/* Responsive */
@media (max-width: 980px) {
  .engagement-band { padding: 64px 24px; }
  .bento { grid-template-columns: 1fr; }
  .bento-hero { grid-column: 1; padding: 44px 28px; grid-template-columns: 1fr; gap: 28px; }
  .bento-hero .bento-h { font-size: clamp(2rem, 7vw, 2.6rem); }
  .bento-support { grid-column: 1; min-height: auto; padding: 36px 28px; border-right: none; }
  .bento-tile { border-right: none; }
}
.engagement-foot {
  text-align: center; font-family: var(--f-sans); font-size: .9rem;
  color: var(--ink2); margin-top: 44px; max-width: 64ch;
  margin-left: auto; margin-right: auto; line-height: 1.7;
}
.engagement-foot a { color: var(--green); border-bottom: 1px solid var(--green); padding-bottom: 1px; }

/* ── CONTEXT QUAD — 4-tile bold-colour bento for context/framing sections ── */
.context-band {
  padding: 120px 40px;
  border-bottom: 1px solid var(--ink);
}
.context-quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.context-tile {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  min-height: 380px;
}
.context-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(26,26,24,0.32);
  z-index: 1;
}
.context-tile-tag {
  font-family: var(--f-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 28px;
}
.context-tile-h {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -.018em;
  margin-bottom: 22px;
}
.context-tile-h em { font-style: italic; font-weight: 500; }
.context-tile-body {
  font-family: var(--f-sans);
  font-size: 1.02rem;
  line-height: 1.7;
}
.context-tile-link {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  padding-bottom: 3px;
  margin-top: 28px;
  align-self: flex-start;
  border-bottom: 1px solid currentColor;
  transition: opacity .2s;
}
.context-tile-link:hover { opacity: .75; }

/* ── Colour variants ── */
.context-tile.ink {
  background: var(--ink);
  color: var(--paper);
  border-right: 1px solid rgba(250,250,247,.12);
}
.context-tile.ink .context-tile-tag { color: var(--paper); }
.context-tile.ink .context-tile-h em { color: var(--bronze2, var(--bronze)); }
.context-tile.ink .context-tile-body { color: var(--paper); }
.context-tile.ink .context-tile-link { color: var(--paper); }

.context-tile.green {
  background: var(--green);
  color: var(--paper);
}
.context-tile.green .context-tile-tag { color: var(--paper); }
.context-tile.green .context-tile-h em { color: var(--bronze2, var(--bronze)); font-style: italic; }
.context-tile.green .context-tile-body { color: var(--paper); }
.context-tile.green .context-tile-link { color: var(--paper); }

.context-tile.paper {
  background: var(--paper);
  color: var(--ink);
  border-right: 1px solid var(--rule);
}
.context-tile.paper .context-tile-tag { color: var(--green); }
.context-tile.paper .context-tile-h em { color: var(--green); }
.context-tile.paper .context-tile-body { color: var(--ink); }
.context-tile.paper .context-tile-link { color: var(--green); }

.context-tile.bronze {
  background: var(--paper3);
  color: var(--ink);
}
.context-tile.bronze .context-tile-tag { color: var(--green); }
.context-tile.bronze .context-tile-h em { color: var(--green); }
.context-tile.bronze .context-tile-body { color: var(--ink); }
.context-tile.bronze .context-tile-link { color: var(--green); }

@media (max-width: 980px) {
  .context-band { padding: 64px 24px; }
  .context-quad { grid-template-columns: 1fr; }
  .context-tile {
    padding: 44px 28px;
    min-height: auto;
    border-right: none !important;
  }
}

