/* THE END OF THE PAGE, under the resume. The closing line (the question, its answer, the email to answer it with),
   then a quiet footer in three columns: the ball of thread come undone over his name and the time in Gurugram, the menu, the links out.
   The story's ball of thread drops into the mark and unwinds there (end.js draws it; story.js drops it). */
#endStage {
  position: relative;
  z-index: 2; /* above the story's fixed layer, which otherwise sits over the footer and swallows every click on its links */
  --col: min(1000px, 72vw);
  width: var(--col);
  margin: 0 auto;
  color: var(--ink);
}
@media (max-width: 760px) {
  #endStage {
    --col: calc(100vw - 32px);
  }
}
:where(#endStage) :where(h2, p) {
  margin: 0;
}

/* the closing line */
.end-close {
  padding: 24px 0 clamp(80px, 14vh, 120px);
}
.end-close h2 {
  font:
    800 clamp(40px, 6vw, 84px) / 0.95 Archivo,
    'Arial Narrow',
    Arial,
    sans-serif;
  font-stretch: 112%;
  letter-spacing: -0.04em;
}
.end-close h2 span {
  font-weight: 600;
  color: var(--faint);
} /* the answer, lighter than the question */
.end-mail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}
.end-mail span {
  font:
    500 clamp(17px, 2vw, 23px) / 1.2 'Geist Mono',
    ui-monospace,
    Menlo,
    Consolas,
    monospace;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.end-copy {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.end-copy:hover,
.end-copy:focus-visible {
  border-color: var(--ink);
}
.end-copy svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.end-copy .tick {
  display: none;
}
.end-copy.done .tick {
  display: block;
}
.end-copy.done .two {
  display: none;
}
.end-copy em {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  translate: 0 -50%;
  font:
    500 11.5px/1 'Geist Mono',
    ui-monospace,
    monospace;
  font-style: normal;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.end-copy.done em {
  opacity: 1;
} /* "Copied", for a moment, beside the tick */

/* the footer */
.end-foot {
  border-top: 1px solid var(--rule);
  padding: 64px 0 56px;
  font:
    400 14px/1.5 'Geist Mono',
    ui-monospace,
    Menlo,
    Consolas,
    monospace;
  letter-spacing: -0.01em;
}
.end-cols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
}
.end-me {
  position: relative;
  min-width: 0;
}
.end-mark {
  position: relative;
  width: 300px;
  height: 260px;
  margin: -50px 0 0 -40px;
  touch-action: pan-y;
}
#endChaos {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.end-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.end-name b {
  font:
    800 19px/1 Archivo,
    'Arial Narrow',
    Arial,
    sans-serif;
  font-stretch: 112%;
  letter-spacing: -0.02em;
}
.end-name span,
.end-time {
  color: var(--grey);
  font-size: 13px;
}
.end-time {
  margin-top: 10px;
}
.end-nav,
.end-out {
  display: flex;
  flex-direction: column;
}
.end-out {
  align-items: flex-end;
}
.end-nav a,
.end-out a {
  color: var(--grey);
  text-decoration: none;
  line-height: 33px;
  transition: color 0.2s ease;
}
.end-nav a:hover,
.end-out a:hover,
.end-nav a:focus-visible,
.end-out a:focus-visible {
  color: var(--ink);
}
.end-note svg {
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.45em;
  vertical-align: -0.12em;
  fill: var(--ink);
} /* a small black heart before the credit */
.end-note {
  margin-top: 64px;
  text-align: center;
  font-size: 13px;
  color: var(--grey);
}
@media (max-width: 760px) {
  .end-close {
    padding-bottom: 64px;
  }
  .end-cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .end-out {
    align-items: flex-start;
  }
  .end-mark {
    width: 260px;
    height: 220px;
    margin: -40px 0 0 -24px;
  }
}
