/* ------------------------------------------------------------------ *
 * Nyansora — inner pages
 *
 * Loaded AFTER app.css so the header, footer, buttons and type primitives
 * are inherited exactly rather than rebuilt. Everything the scrollytelling
 * homepage needs — the 3D stage, the atmospherics, the phase chrome — simply
 * has no element to attach to here, so it costs nothing.
 *
 * These pages are deliberately flat: no canvas, no vignette, no grain, no
 * parallax. The homepage argues with motion; these answer with facts, and a
 * moving background behind a careers listing would be noise.
 *
 * The type is set heavier than the homepage. Over there the model is the
 * subject and the words sit beside it; here the words ARE the subject.
 * ------------------------------------------------------------------ */

.page {
  position: relative;
  z-index: var(--z-content);
  background: var(--bg);
  padding-top: var(--bar-h);
}

/* ------------------------------------------------------------------ *
 * Masthead
 * ------------------------------------------------------------------ */

.page__head {
  display: grid;
  gap: 1.5rem;
  max-width: 62rem;
  padding: clamp(4rem, 11vh, 8rem) var(--gutter) clamp(2.5rem, 6vh, 4rem);
}

.page__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
}
.page__eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--acc);
}

.page__title {
  font-size: clamp(2.25rem, 5.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
  max-width: 20ch;
}

.page__lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ------------------------------------------------------------------ *
 * Sections
 * ------------------------------------------------------------------ */

.page__body {
  display: grid;
  gap: clamp(3rem, 8vh, 5.5rem);
  padding: 0 var(--gutter) clamp(4rem, 12vh, 8rem);
}

.sect {
  display: grid;
  gap: 2rem;
  max-width: 72rem;
  padding-top: clamp(2rem, 5vh, 3.5rem);
  border-top: 1px solid var(--line);
}

.sect__label {
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
}

.sect__title {
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
  max-width: 24ch;
}

.sect__text {
  font-size: var(--fs-body);
  line-height: 1.62;
  font-weight: 400;
  color: var(--ink-2);
  max-width: 62ch;
  text-wrap: pretty;
}
.sect__text + .sect__text {
  margin-top: -1rem;
}
.sect__text strong {
  color: var(--ink);
  font-weight: 600;
}

/* ------------------------------------------------------------------ *
 * Numbered stage list — the five-stage engine, and anything like it
 * ------------------------------------------------------------------ */

.stages {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stage-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 15rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  background: var(--bg);
  padding: 1.75rem 0;
  transition: background-color var(--t-fast) var(--ease);
}
.stage-row:hover {
  background: var(--tint-1);
}

.stage-row__num {
  font-size: var(--fs-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--acc);
  letter-spacing: 0.04em;
}

.stage-row__name {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stage-row__body {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 58ch;
}

/* ------------------------------------------------------------------ *
 * Card grid — capability blocks, principles, role listings
 * ------------------------------------------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

/* Five cards leave a dead cell in any even-column grid, and because the grid
   draws its hairlines as a 1px gap over a tinted container, that cell reads as
   an empty card. Lay them out 3 + 2 instead, so every row is full. */
.cards--5 {
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) {
  .cards--5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards--5 > .card:last-child {
    grid-column: 1 / -1;
  }
}
@media (min-width: 64rem) {
  .cards--5 {
    grid-template-columns: repeat(6, 1fr);
  }
  .cards--5 > .card {
    grid-column: span 2;
  }
  .cards--5 > .card:nth-child(n + 4) {
    grid-column: span 3;
  }
}

.card {
  background: var(--bg);
  padding: 1.75rem 1.5rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  transition: background-color var(--t-fast) var(--ease);
}
.card:hover {
  background: var(--tint-1);
}

.card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.card__text {
  font-size: var(--fs-sm);
  line-height: 1.58;
  color: var(--ink-2);
}

.card__meta {
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
}

/* ------------------------------------------------------------------ *
 * Pull quote / statement
 * ------------------------------------------------------------------ */

.statement {
  font-size: clamp(1.375rem, 3vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 26ch;
  text-wrap: balance;
}
.statement em {
  font-style: normal;
  color: var(--acc);
}

/* ------------------------------------------------------------------ *
 * Definition rows — contact details, role facts
 * ------------------------------------------------------------------ */

.deflist {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.defrow {
  background: var(--bg);
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.25rem 0;
  align-items: baseline;
}

.defrow__key {
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
}

.defrow__val {
  margin: 0; /* <dd> carries a UA indent */
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.5;
}
.defrow__val a {
  border-bottom: 1px solid var(--line-2);
  transition: color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}
.defrow__val a:hover {
  color: var(--acc);
  border-color: var(--acc-dim);
}

/* ------------------------------------------------------------------ *
 * Closing call to action
 * ------------------------------------------------------------------ */

.page__cta {
  display: grid;
  gap: 1.75rem;
  max-width: 72rem;
  padding-top: clamp(2rem, 5vh, 3.5rem);
  border-top: 1px solid var(--line);
}

.page__cta .outro__actions {
  margin-top: 0.25rem;
}

/* ------------------------------------------------------------------ *
 * Responsive
 * ------------------------------------------------------------------ */

@media (max-width: 760px) {
  .stage-row {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.75rem 1rem;
    padding: 1.5rem 0;
  }
  /* The number keeps its column; name and body stack beneath it. */
  .stage-row__body {
    grid-column: 2;
  }

  .defrow {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.375rem;
    padding: 1.125rem 0;
  }
}
