/* ============================================================
   Gessura — /process/ v5 «Monochrome premium»
   A full-bleed opening scene, a boxless numbered ledger for the
   four steps, a quiet failure strip, a ribbon finale. Sibling of
   home.css; the curtain + live numerals live in p-process.js.
   ============================================================ */

/* -- 1 · opening scene ---------------------------------------- */

.g3-ps-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.g3-ps-hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.g3-ps-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}
/* scrim: open centre, settled edges — the type sits ON the film */
.g3-ps-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(75% 60% at 50% 48%, rgba(10, 10, 12, .58), rgba(10, 10, 12, .22) 60%, transparent 82%),
    linear-gradient(180deg, rgba(10, 10, 12, .55) 0%, transparent 26%, transparent 66%, rgba(10, 10, 12, .88) 100%);
}

.g3-ps-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 26px;
  justify-items: center;
  text-align: center;
  padding: clamp(120px, 16vh, 190px) 24px clamp(80px, 11vh, 140px);
}
.g3-ps-hero-title {
  font-size: clamp(38px, 6vw, 100px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -.015em;
  max-width: 16ch;
}
.g3-ps-hero-promise {
  margin: 0;
  max-width: 62ch;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.9;
  color: var(--bone-soft);
}

/* the caret cue: mint, the one hot pixel on the scene */
.g3-ps-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(26px, 5vh, 48px);
  translate: -50% 0;
  color: var(--ember);
  font-size: 20px;
  line-height: 1;
  animation: g3-ps-bob 2.4s var(--ease) infinite;
}
@keyframes g3-ps-bob {
  0%, 100% { transform: translateY(0); opacity: .8; }
  50%      { transform: translateY(9px); opacity: 1; }
}

/* -- 2 · the pipeline ledger ----------------------------------- */

.g3-ps-steps {
  position: relative;
  z-index: 2;
  background: var(--coal);
  padding-block: var(--pad);
  /* the arriving curtain casts light ahead of itself */
  box-shadow: 0 -90px 160px -30px rgba(0, 0, 0, .85);
}

.g3-ps-steps-head { margin-bottom: clamp(36px, 4.5vw, 64px); }

/* a step: numeral · copy · specs, spread across the full row */
.g3-ps-row {
  display: grid;
  grid-template-columns: clamp(140px, 14vw, 240px) minmax(0, 1fr) minmax(220px, 300px);
  grid-template-areas: 'num body specs';
  align-items: start;
  gap: var(--gutter);
  padding-block: clamp(44px, 5.5vw, 84px);
  border-bottom: 1px solid var(--hairline);
}
.g3-ps-row:first-of-type { border-top: 1px solid var(--hairline); }
.g3-ps-num   { grid-area: num; }
.g3-ps-body  { grid-area: body; }
.g3-ps-specs { grid-area: specs; }

/* the giant thin numeral: faint until its row holds the screen */
.g3-ps-num {
  font-weight: 200;
  font-size: clamp(72px, 9.5vw, 180px);
  line-height: .84;
  letter-spacing: -.03em;
  color: var(--bone-faint);
  font-variant-numeric: tabular-nums;
  transition: color .7s var(--ease);
}
.g3-ps-row.is-live .g3-ps-num { color: var(--bone); }

.g3-ps-body {
  display: grid;
  gap: 18px;
  justify-items: start;
}
.g3-ps-title {
  font-size: clamp(30px, 3.4vw, 58px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.012em;
}
.g3-ps-copy {
  margin: 0;
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--bone-soft);
}
/* the readout column: quiet uppercase facts on the right edge */
.g3-ps-specs {
  margin: 0;
  display: grid;
  gap: 14px;
  justify-items: end;
  text-align: right;
  align-self: start;
  padding-top: clamp(10px, 1.2vw, 22px);
}
.g3-ps-specs span {
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--bone-soft);
}
/* the live price — the only mint text on the ledger */
.g3-ps-specs .is-price { color: var(--ember-hi); }

.g3-ps-alt {
  margin: 30px 0 0;
  max-width: 74ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--bone-faint);
}

/* -- 3 · what can go wrong ------------------------------------- */

.g3-ps-fault { position: relative; z-index: 2; }
.g3-ps-fault-head { margin-bottom: clamp(36px, 4.5vw, 64px); }
.g3-ps-fault-rows { border-top: 1px solid var(--hairline); }
.g3-ps-fault-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 28px;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left var(--t-base) var(--ease);
}
.g3-ps-fault-row:hover { padding-left: 16px; }
.g3-ps-fault-name {
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 300;
  color: var(--bone);
}
.g3-ps-fault-val {
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone-faint);
  text-align: right;
}

/* -- 4 · finale ------------------------------------------------- */

.g3-ps-final {
  position: relative;
  z-index: 2;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.g3-ps-final-media {
  position: absolute;
  inset: 0;
}
.g3-ps-final-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);   /* headroom for the slow settle */
}
/* weighted to the copy side, settled at both folds */
.g3-ps-final-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 12, .84) 0%, rgba(10, 10, 12, .48) 42%, rgba(10, 10, 12, .1) 78%),
    linear-gradient(180deg, rgba(10, 10, 12, .8) 0%, transparent 28%, transparent 68%, rgba(10, 10, 12, .88) 100%);
}
.g3-ps-final-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 26px;
  justify-items: start;
  padding: clamp(90px, 12vh, 150px) 24px;
  padding-inline: clamp(24px, 6vw, 110px) 24px;
  max-width: min(980px, 94vw);
}
.g3-ps-final-title {
  font-size: clamp(36px, 5vw, 84px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.012em;
}
.g3-ps-final-note {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* -- responsive ------------------------------------------------- */

@media (max-width: 900px) {
  .g3-ps-hero { min-height: 100svh; }
  .g3-ps-hero-title { font-size: clamp(34px, 8vw, 56px); }
  .g3-ps-hero-promise { line-height: 1.75; }
}

/* mid widths: the readout drops under the copy, runs on separators */
@media (max-width: 1100px) {
  .g3-ps-row {
    grid-template-columns: clamp(110px, 13vw, 180px) minmax(0, 1fr);
    grid-template-areas:
      'num body'
      '.   specs';
  }
  .g3-ps-specs {
    display: flex;
    flex-wrap: wrap;
    justify-items: start;
    text-align: left;
    align-self: auto;
    padding-top: 0;
    gap: 0;
    margin-top: 2px;
  }
  .g3-ps-specs span {
    padding: 6px 22px 6px 0;
    margin-right: 22px;
    border-right: 1px solid var(--hairline-2);
  }
  .g3-ps-specs span:last-child { border-right: 0; margin-right: 0; }
}

@media (max-width: 700px) {
  .g3-ps-row {
    grid-template-columns: 1fr;
    grid-template-areas: 'num' 'body' 'specs';
    gap: 14px;
    padding-block: clamp(36px, 9vw, 52px);
  }
  .g3-ps-num { font-size: clamp(52px, 15vw, 72px); }
  .g3-ps-title { font-size: clamp(26px, 7.4vw, 38px); }
  .g3-ps-specs { flex-direction: column; }
  .g3-ps-specs span {
    border-right: 0;
    padding: 5px 0;
    margin-right: 0;
  }
  .g3-ps-fault-row {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .g3-ps-fault-val { text-align: left; }
  .g3-ps-final { min-height: 88svh; }
  .g3-ps-final-title { font-size: clamp(30px, 8.6vw, 44px); }
}
