/* Earlyworks trade pages (site/trades/, written by tools/trade_pages.py).
   Arrangement only: every value comes from ew-tokens.css, and the shared pieces
   (header, hero, buttons, project facts, stage table, chips, questions, footer)
   come from site.css. */

/* the trade's photograph from its home page card, carrying the figure */
.tfig { position: relative; margin: 0; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
  isolation: isolate; background: var(--ink-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7), 0 0 0 1px var(--line-inv); }
.tfig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tfig::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15, 16, 18, .12) 0%, rgba(15, 16, 18, 0) 26%, rgba(15, 16, 18, .5) 56%, rgba(15, 16, 18, .95) 100%); }
.tfig__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; }
.tfig__n b { display: block; font-size: clamp(52px, 5.6vw, 76px); font-weight: 700; letter-spacing: -0.045em; line-height: .95;
  color: var(--text-inv); font-feature-settings: "tnum"; text-shadow: 0 1px 16px rgba(0, 0, 0, .4); }
.tfig__n span { display: block; margin-top: 12px; max-width: 20em; font-size: 17px; line-height: 1.4; color: rgba(243, 242, 238, .86); }
.tfig__stamp { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 14px;
  color: rgba(243, 242, 238, .7); }
@media (max-width: 899px) {
  .tfig { aspect-ratio: 4 / 5; }
  .tfig__body { padding: 22px; }
}

/* example projects: the facts and lines of the home page's project sheet, as cards */
.exgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.excard { display: flex; flex-direction: column; min-width: 0; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-1); padding: 22px 22px 18px; }
.excard h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.prose .excard__sub { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14.5px; color: var(--text-2); }
.excard__sub svg { width: 15px; height: 15px; flex: none; color: var(--amber-ink); }
.excard .tsheet__facts { margin-top: 18px; }
.excard .tsheet__facts dd { font-size: 24px; }
.tsheet__facts.facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tsheet__facts.facts--1 { grid-template-columns: minmax(0, 1fr); }
.excard .lines { margin-top: 16px; font-size: 14px; gap: 8px; }
.excard .lines dd { max-width: 64%; overflow-wrap: anywhere; }
.excard .tlink { align-self: flex-start; margin-top: 8px; font-size: 15px; }
.prose .exgrid + .note { margin-top: 22px; }
@media (max-width: 1099px) { .exgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) {
  .exgrid { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 24px; }
  .excard { padding: 20px 18px 16px; }
}

/* where the projects stand, beside where they are */
.tstand { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
.tstand--one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 899px) {
  .tstand { grid-template-columns: minmax(0, 1fr); gap: 56px; }
}

/* questions, then the related pages */
.tqa { margin-top: 28px; }
.relinks { margin-top: 48px; }
.relinks .othermetros { margin-top: 2px; }
.relinks .othermetros + .note { margin-top: 18px; }
