/* How it works (how-it-works.html), around the wall (wall.css): the title
   that opens the page over the wall's first frame, and the closing copy
   that follows the wall's curtain: the three steps (01 · Run., 02 · Edit.,
   03 · Run again.) and the homepage's closing call. Tokens, type and the
   footer are the site's (src/base.css, src/sections.css, src/sections/
   cta.css). Layout: a 12-column grid at 901px and up, one column below. */

/* The title: RER lettering at the sections' cap height, under the nav at the
   left, over the wall's darker left side; src/how/presentation.js fades it
   out as the tab is pulled. A soft shade behind it keeps it clear of the
   screens it sits over, and goes with it. */
.how-intro {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  top: calc(clamp(18px, 3.9vw, 40px) + clamp(64px, 6.64vw, 102px) * 0.6 + clamp(48px, 7svh, 96px));
  pointer-events: none;
}
.how-intro::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -40% -60% -60% calc(var(--gutter) * -1);
  background: radial-gradient(closest-side, rgba(5, 6, 7, 0.55), transparent);
}
.how-title { margin: 0; font-size: var(--display-cap); line-height: 0; color: var(--paper); }
.how-hint {
  margin: clamp(16px, 1.6vw, 26px) 0 0;
  font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-soft);
}

/* The closing copy starts in the wall's black (its curtain's #111210) and
   settles into the page's. */
.how-close { background: linear-gradient(#111210, var(--ink) min(60svh, 560px)); }

/* The three steps: each step's tag (an RER display line) over its title at
   the left, its body at the right; one column below 901px. Each step takes
   about two thirds of the viewport, so the page scrolls through them one at
   a time: at most one step and the start of the next are in view together.
   Their parts enter in turn as they rise and leave at the top
   (src/how/steps.js), so only what is being read is on screen. */
.step {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: start;
  align-content: start;
  min-height: 65svh;
  margin: 0 var(--gutter);
  padding-top: clamp(120px, 13vw, 220px);
}
.step:first-child { padding-top: var(--section-space); }
.step-copy { grid-column: 1 / span 7; }
.tag { margin: 0; font-size: calc(var(--display-cap) * 1.2); line-height: 0; color: var(--paper); }
.step-title {
  max-width: 16em;
  margin: clamp(18px, 1.7vw, 30px) 0 0;
  font-size: clamp(28px, 3.3vw, 62px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: var(--paper);
  text-wrap: balance;
}
.step-body { grid-column: 8 / span 5; }

/* 02 · Edit.: the owner's requests, as the agent would read them. */
.edit-asks .body { font-size: clamp(19px, 1.5vw, 24px); color: var(--paper); }
.edit-asks .edit-layers { max-width: none; font: 400 clamp(15px, 1.2vw, 19px)/1.5 var(--mono); letter-spacing: 0.01em; color: var(--text-soft); }
.prompts { display: grid; gap: 0; margin: 14px 0 16px; padding: 0; list-style: none; }
.prompts li {
  position: relative;
  padding: 9px 0 9px 1.7em;
  border-bottom: 1px solid rgba(236, 235, 231, 0.18);
  font: 400 clamp(14px, 1.02vw, 16px)/1.45 var(--mono);
  color: var(--text);
  text-wrap: pretty;
}
.prompts li::before { content: '›' / ''; position: absolute; left: 0.3em; color: var(--text-faint); }

@media (max-width: 900px) {
  .how-intro { top: calc(18px + clamp(64px, 6.64vw, 102px) * 0.6 + clamp(40px, 6svh, 72px)); }
  .step { display: block; padding-top: clamp(96px, 16vw, 140px); }
  .tag { font-size: var(--display-cap); }
  .step-title { max-width: 15em; margin-top: 18px; font-size: clamp(26px, 4.8vw, 40px); }
  .step-body { margin-top: 20px; }
}
