/* hardware_sourcing.css — page-specific layer only.
   Chapters, blocks, process steps, buttons and the enquiry form all come from the
   shared stylesheets. This file only adds the weight the dominant blocks carry. */

/* ---------- Hero close-up ----------
   The macro keyboard plate. Sized by ASPECT RATIO rather than height so it keeps its
   proportion as the hero column widens, exactly like .evidence-media does — the two
   are the same idea at different scales and should not drift apart.

   The SVG uses preserveAspectRatio="slice", so it fills and crops rather than
   letterboxing: a close-up that letterboxes stops being a close-up. */
.sourcing-closeup {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0a0a09;
    border: 1px solid rgba(247, 243, 236, .14);
}

.sourcing-closeup svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* The tag names what the visual is, so the picture is not asked to caption itself. */
.sourcing-closeup-tag {
    position: absolute;
    left: var(--space-4);
    bottom: var(--space-4);
    padding: 6px 11px;
    border-radius: var(--radius-control);
    background: rgba(10, 10, 9, .66);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(247, 243, 236, .2);
    font-size: .6875rem;
    font-weight: var(--weight-semibold);
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--color-text-on-dark);
}

@media (min-width: 1024px) {
    .sourcing-closeup { aspect-ratio: 16 / 9 }
}

.sourcing-note {
    padding-top: var(--space-3);
}

.sourcing-note p {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
}

.sourcing-note p + p {
    margin-top: var(--space-5);
}

/* This chapter has three steps rather than four, so it needs its own top of the
   ladder. The 1-column and 2-column stages, the timeline markers and the downward
   stagger all come from the shared .process-steps.

   Declared AFTER the shared sheet in every page's <link> order, so these win — which
   is why the unequal proportions have to be restated here rather than inherited. */
@media (min-width: 1024px) {
    .process-steps--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .process-steps--three {
        grid-template-columns: minmax(0, .88fr) minmax(0, 1fr) minmax(0, 1.12fr);
    }
}

/* ---------- Track record: an offset editorial pair ----------
   This chapter was a single full-width block, which is a band rather than a
   composition. The statement now takes 7 columns and a narrow stage rail takes 5.
   The four stages are the ones already named in the statement's own sentence
   (specifying, ordering, shipping, delivering) — restated as structure, not as new
   claims, so no metric or outcome is invented. */
.record-stages {
    justify-content: center;
}

.record-stages-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--color-accent-earth);
    margin-bottom: var(--space-5);
}

.record-stage-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-1);
}

.record-stage-list li {
    display: flex;
    align-items: baseline;
    gap: var(--space-4);
    padding-block: var(--space-3);
    border-top: 1px solid var(--color-border);
}

.record-stage-list li:first-child { border-top: 0; padding-top: 0 }

.record-stage-index {
    flex-shrink: 0;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-eyebrow);
    color: var(--color-text-subtle);
}

.record-stage-name {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--weight-display);
    letter-spacing: var(--tracking-display);
    color: var(--color-text);
}

#track-record h2 {
    font-size: var(--display-3);
    max-width: 34ch;
}

/* Was 68ch, which measured 98 characters per line at 1920px — past the point where
   a line is comfortable to track back from. Uses the shared measure so this page
   matches the rest of the site rather than carrying its own wider column. */
#track-record p {
    margin-top: var(--space-5);
    font-size: var(--text-lg);
    max-width: var(--measure);
}

/* ---------- Categories: the tablet composition ----------
   The desktop bento reads 7/5-tall, 7, 5/7, 12 — spans that the shared tablet stage
   in global_styles.css sends to full width one after another, which would leave this
   chapter as six stacked bands between 600 and 899px. Restated here as three pairs
   and a closer, at .grid #categories specificity so it beats the shared stage. */
@media (min-width: 600px) and (max-width: 899px) {
    /* Two pairs, then two banners. Nothing is left alone in a half-empty row: the
       fifth block and the graphite closer both take the full width deliberately. */
    #categories .grid > .block:nth-child(-n+4) {
        grid-column: span 6;
    }

    #categories .grid > .block:nth-child(n+5) {
        grid-column: 1 / -1;
    }
}

#categories .block--row h3 {
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    font-size: var(--display-3);
    letter-spacing: var(--tracking-display);
    line-height: var(--leading-tight);
}

#categories .block--row p {
    font-size: var(--text-lg);
    max-width: var(--measure);
}

