/* ==========================================================================
   Process — /process
   Paper artboard "20 Process" (2GK-0). Everything shared comes from site.css;
   this file holds only what is particular to this page. Tokens only, logical
   properties only, every rule under .page-process.
   ========================================================================== */

/* ---- 01 Hero (3SJ-0) ---- */

/* Paper sets this headline at -4% (the Display specimen is -4.5%). */
.page-process .process-hero__title { letter-spacing: var(--tracking-tight); }

/* Note (3 columns) at the start, lead (6 columns) at the end, 24px under the headline's own gap. */
.page-process .process-hero__row {
  align-items: start;
  padding-block-start: var(--space-6);
}

/* Stage index: five equal text columns under a hairline, separated by hairlines.
   Flex with equal growth and the drawn paddings reproduces Paper's 241 / 266 / 266 / 266 / 242. */
.page-process .stage-index {
  display: flex;
  border-block-start: 1px solid var(--c-rule);
}

.page-process .stage-index__item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 0.625rem;
  min-inline-size: 0;
  padding: var(--space-6) var(--space-6) var(--space-10);
  border-inline-start: 1px solid var(--c-rule);
}

.page-process .stage-index__item:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.page-process .stage-index__item:last-child { padding-inline-end: 0; }

.page-process .stage-index__icon {
  display: flex;
  align-items: flex-start;
  block-size: 2.125rem;                    /* 34: the icon lane */
  color: var(--c-ink);
}

.page-process .stage-index__num {
  font-size: var(--fs-label);
  font-weight: var(--weight-light);
  line-height: var(--lh-label);
  letter-spacing: var(--tracking-normal);
  color: var(--c-muted);
}

/* ---- 02 How engagements begin (4CA-0) ---- */

/* 40px under the list plus the link's own 12px. Flex, so the row is as tall as the link (20px), not a text line. */
.page-process .process-start__link {
  display: flex;
  margin-block-start: 3.25rem;
}

/* The example brief: a white sheet with a hairline, 40 / 40 / 32 */
.page-process .brief-sheet { --card-pad: var(--space-10) var(--space-10) var(--space-8); }

.page-process .brief-sheet__head {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-block-end: var(--space-8);
}

.page-process .brief-sheet__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  padding-block-start: var(--space-6);
}

.page-process .brief-sheet__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.page-process .brief-sheet__status::before {
  content: "";
  flex: none;
  inline-size: 8px;
  block-size: 8px;
  border: 1px solid var(--c-ink);
}

/* ---- 03 Frequently asked questions (APW-0) ---- */
.page-process .process-faq__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-8);
}

.page-process .process-faq__intro .body { max-inline-size: 23.75rem; }   /* 380 */

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  /* Stage index: three and two */
  .page-process .stage-index {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-process .stage-index__item { padding-block-end: var(--space-8); }

  .page-process .stage-index__item:nth-child(3n + 1) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  /* one hairline across the full width between the two rows */
  .page-process .stage-index__item:nth-child(-n + 3) { border-block-end: 1px solid var(--c-rule); }

  .page-process .stage-index__item:last-child { padding-inline-end: var(--space-6); }

  .page-process .process-faq__intro { gap: var(--space-6); }
}

/* ---- Phone ---- */
@media (max-width: 768px) {
  .page-process .process-hero__row { padding-block-start: 0; }

  /* Stage index: one stage per row, icon at the start */
  .page-process .stage-index { display: block; }

  .page-process .stage-index__item {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    column-gap: var(--space-4);
    row-gap: var(--space-1);
    padding: var(--space-5) 0;
    border-inline-start: 0;
    border-block-start: 1px solid var(--c-rule);
  }

  .page-process .stage-index__item:first-child { border-block-start: 0; }
  .page-process .stage-index__item:last-child { padding-inline-end: 0; }

  .page-process .stage-index__icon {
    grid-row: 1 / span 3;
    block-size: auto;
    padding-block-start: var(--space-1);
  }

  .page-process .stage-index__item > :not(.stage-index__icon) { grid-column: 2; }

  .page-process .process-start__link { margin-block-start: var(--space-8); }

  .page-process .brief-sheet { --card-pad: var(--space-6) var(--space-5); }
  .page-process .brief-sheet__head { padding-block-end: var(--space-6); }
}
