/* ============ Type roles ============ */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.display--md { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.22; font-weight: 500; }
.on-dark .display, .display.on-dark { color: var(--cream); }
/* Figures (stats, specs): lining numerals, so data reads level and measured. */
.stat__value { font-variant-numeric: lining-nums; }
.lede { font-size: 18px; line-height: 28px; }
.body { font-size: 16px; line-height: 24px; }
.small { font-size: 14px; line-height: 22px; }

/* Eyebrow: the label above every hero and section title, on every page.
 * Type sheet rule 3: Inter SemiBold 12px, uppercase, 2px tracking. */
.eyebrow { font-size: 12px; font-weight: 600; line-height: 20px; letter-spacing: var(--tracking); text-transform: uppercase; color: var(--clay); }
.eyebrow--gold { color: var(--gold-text); }
.bg-ink .eyebrow--gold { color: var(--gold); }
.eyebrow--light { color: var(--on-dark); }

.label {                          /* tracked uppercase utility text */
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
}

/* ============ Section head ============
 * tag (pill or eyebrow) → 16 → title → 16 → lede → --head-gap → content.
 * Used by every section on every page. */
.section-head { max-width: 880px; margin-bottom: var(--head-gap); }
.section-head__title {          /* H2: one step below the hero H1 (48) */
  margin-top: var(--sp-16);
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.section-head__title.on-dark, .bg-ink .section-head__title, .bg-forest .section-head__title,
.bg-clay .section-head__title { color: var(--on-dark); }
.section-head__lede { margin-top: var(--sp-16); max-width: 720px; font-size: 16px; line-height: 24px; color: var(--ink-80); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .section-head__lede { margin-left: auto; margin-right: auto; }
.section-head--flush { margin-bottom: 0; }

/* Hero head: same order, one step larger. */
/* Every page hero has the same title, in the same place:
 * 32px tag slot (pill, eyebrow or breadcrumb) → 24 → H1 48/56 → 24 → lede → 32 → actions. */
.hero-head__tag { display: flex; align-items: center; min-height: 32px; }
.hero-head__title {
  margin-top: var(--sp-24);
  font-family: var(--font-display);
  font-size: clamp(36px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-head__lede { margin-top: var(--sp-24); max-width: 560px; }
.hero-head__actions { display: flex; flex-wrap: wrap; gap: var(--sp-16); margin-top: var(--sp-32); }
@media (max-width: 640px) { .hero-head__actions .btn { flex: 1 1 auto; } }
/* Closing tag line of a hero: brass rule + label, on the photo's bottom edge. */
.hero-head__tags { display: flex; align-items: center; gap: var(--sp-16); color: var(--ink-80); text-wrap: balance; }
.hero-head__rule { width: 48px; height: 2px; flex: none; background: var(--gold); }

/* ============ Pill / badge / chip ============ */
.pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 var(--sp-12);
  border-radius: var(--radius-pill);
  background: var(--chip);
  font-size: 12px;
  color: var(--ink-80);
}
.pill--dark { background: var(--forest-soft); color: var(--on-dark); }

.badge {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 var(--sp-12);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
}
.badge--light { background: var(--cream); color: var(--ink); }
.badge--dark { background: var(--ink); color: var(--cream); }

.chips { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.chip {
  display: inline-flex;
  align-items: center;
  height: var(--control-h-sm);
  padding: 0 var(--sp-16);
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 12px;
  color: var(--ink);
  transition: background-color .2s ease, color .2s ease;
}
.chip:hover { background: var(--chip); }
.chip[aria-pressed="true"] { background: var(--clay); color: var(--cream); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-12);
  height: var(--control-h);
  padding: 0 var(--sp-24);
  border: 1.5px solid transparent;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--sm { height: var(--control-h-sm); font-size: 12px; }
.btn--tracked { letter-spacing: 0.167em; }
.btn--upper { text-transform: uppercase; }
.btn--block { width: 100%; }
.btn .icon { width: 10px; height: 10px; flex: none; }

.btn--clay { background: var(--clay); color: var(--white); }
.btn--clay:hover { background: var(--clay-deep); }
.btn--forest { background: var(--forest); color: var(--white); }
.btn--forest:hover { background: var(--ink); }
/* Secondary button: one running stitch for its outline, like the dashed ring of the
 * Genova emblem. A CSS `dashed` border gives short dot-like dashes with no control over
 * length, so the stitch is drawn instead: 10px stitches, 6px gaps, one line per side.
 * It follows currentColor, so on hover the stitch turns Bone on the Ink fill. */
.btn--outline {
  --stitch: 10px;
  --stitch-gap: 6px;
  --stitch-w: 1.5px;
  border-color: transparent;
  color: var(--ink);
  background-color: transparent;
  background-image:
    repeating-linear-gradient(90deg, currentColor 0 var(--stitch), transparent 0 calc(var(--stitch) + var(--stitch-gap))),
    repeating-linear-gradient(90deg, currentColor 0 var(--stitch), transparent 0 calc(var(--stitch) + var(--stitch-gap))),
    repeating-linear-gradient(180deg, currentColor 0 var(--stitch), transparent 0 calc(var(--stitch) + var(--stitch-gap))),
    repeating-linear-gradient(180deg, currentColor 0 var(--stitch), transparent 0 calc(var(--stitch) + var(--stitch-gap)));
  background-size: 100% var(--stitch-w), 100% var(--stitch-w), var(--stitch-w) 100%, var(--stitch-w) 100%;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  background-repeat: no-repeat;
  background-origin: border-box;
}
.btn--outline:hover { background-color: var(--ink); color: var(--cream); }
.btn--paper { background: var(--cream); color: var(--ink); }
.btn--paper:hover { background: var(--white); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--ink); color: var(--cream); }

/* ============ Numbered dot ============ */
.dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--forest);
  color: var(--on-dark);
  font-size: 12px;
}

/* ============ Stitched node ============
 * Numbered station on a production line: cream disc, dashed ring like the emblem. */
.node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: 2px dashed var(--ink);
  border-radius: 50%;
  background: var(--cream);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}
.node--done { border-color: var(--forest); background: var(--forest); color: var(--on-dark); }
.node--done svg { width: 16px; height: 16px; }

/* ============ Grids ============ */
.grid { display: grid; gap: var(--grid-gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--loose { column-gap: var(--sp-32); row-gap: var(--sp-48); }  /* text columns, no card chrome */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ============ Split (two columns) ============ */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--col-gap); align-items: center; }
.split--start { align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }

/* ============ Text card (tile) ============
 * One shell for every text-only card: buyer portals, certifications, product forms. */
.tile {
  height: 100%;
  padding: var(--card-pad);
  border-radius: var(--radius-card);
  background: var(--white);
  transition: box-shadow .2s ease;
}
.tile--tint { background: var(--card-tint); }
.tile--raised { box-shadow: var(--shadow-card); }
.tile--dark { background: var(--forest); color: var(--on-dark-dim); }
a.tile { display: block; }
a.tile:hover { box-shadow: var(--shadow-card); }
.tile__kicker { display: block; font-size: 12px; color: var(--gold-text); }
.tile__title { display: block; margin-top: var(--sp-16); font-size: 16px; font-weight: 400; line-height: 24px; color: var(--ink); }
.tile__title--display { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 36px; }
.tile__meta { display: block; margin-top: var(--sp-8); }
.tile__text { display: block; margin-top: var(--sp-12); font-size: 14px; line-height: 22px; color: var(--ink-60); }
.tile__foot { display: block; margin-top: var(--sp-24); padding-top: var(--sp-16); border-top: 1px solid var(--hairline); font-size: 12px; color: var(--ink-60); }
.tile--dark .tile__kicker, .tile--dark .tile__title { color: var(--on-dark); }
.tile--dark .tile__text { color: var(--on-dark-dim); }

/* ============ Photo card ============
 * Photo flush to the top (shares the card radius), body below. */
.media-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--white);
}
.media-card--outline { border: 1px solid var(--hairline); }
.media-card--raised { background: var(--cream); box-shadow: var(--shadow-card); transition: box-shadow .25s ease, transform .25s ease; }
a.media-card--raised:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.media-card__media { position: relative; display: block; height: 240px; overflow: hidden; }
.media-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.media-card:hover .media-card__media img { transform: scale(1.03); }
.media-card__badge { position: absolute; top: var(--sp-16); left: var(--sp-16); }
.media-card__body { display: flex; flex: 1; flex-direction: column; padding: var(--card-body-pad); }
.media-card__title { display: block; font-size: 16px; font-weight: 400; line-height: 24px; color: var(--ink); }
.media-card__meta { display: block; margin-top: var(--sp-8); font-size: 12px; color: var(--ink-80); }
.media-card__text { display: block; margin-top: var(--sp-12); font-size: 14px; line-height: 22px; color: var(--ink-60); }
.media-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-8); margin-top: auto; padding-top: var(--sp-32); }
.media-card__foot .icon { width: 12px; height: 10px; flex: none; color: var(--clay); }

/* Photo-pending placeholder */
.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  width: 100%;
  height: 100%;
  padding: var(--sp-24);
  background-color: var(--placeholder-bg);
  background-image:
    radial-gradient(ellipse at 30% 70%, rgba(169, 138, 75, .35), transparent 55%),
    radial-gradient(ellipse at 75% 30%, rgba(142, 56, 42, .30), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='%23f5f2ea' fill-opacity='0.06'%3E%3Crect x='2' y='2' width='20' height='4'/%3E%3Crect x='2' y='9' width='20' height='4'/%3E%3Crect x='2' y='16' width='20' height='4'/%3E%3Crect x='26' y='2' width='4' height='20'/%3E%3Crect x='33' y='2' width='4' height='20'/%3E%3Crect x='40' y='2' width='4' height='20'/%3E%3Crect x='2' y='26' width='4' height='20'/%3E%3Crect x='9' y='26' width='4' height='20'/%3E%3Crect x='16' y='26' width='4' height='20'/%3E%3Crect x='26' y='26' width='20' height='4'/%3E%3Crect x='26' y='33' width='20' height='4'/%3E%3Crect x='26' y='40' width='20' height='4'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--cream);
  text-align: center;
}
.media-placeholder__mark { font-family: var(--font-display); font-size: 36px; font-style: italic; line-height: 1.1; }
.media-placeholder__note { font-size: 12px; letter-spacing: var(--tracking); text-transform: uppercase; color: var(--on-dark-dim); }

/* ============ Photo ============ */
.photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-card); }
