/* 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);
  --grey: #6a6b70;
  --rule: #dcd8cf;
  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: #a9aaaf;
} /* the answer, lighter than the question */
.end-mail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}
.end-mail span {
  font:
    500 clamp(18px, 2vw, 24px) / 1.2 Inter,
    system-ui,
    sans-serif;
  letter-spacing: -0.01em;
  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 #d6d2c8;
  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 11px/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 15px/1.5 Inter,
    system-ui,
    sans-serif;
}
.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:
    700 19px/1 Archivo,
    Arial,
    sans-serif;
  font-stretch: 104%;
  letter-spacing: -0.01em;
}
.end-name span,
.end-time {
  color: var(--grey);
  font-size: 13.5px;
}
.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: 13.5px;
  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;
  }
}
