/* Shell: opening (s00), closing (s10) and the step navigation. Modules never depend on this file. */

/* Opening */
#s00 {
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding-block: 0 clamp(56px, 10vh, 120px);
  overflow: hidden;
}
#s00 .s00-sheet {
  position: absolute;
  inset: 8% -6% auto auto;
  width: min(62vw, 820px);
  opacity: 0.09;
  transform: rotate(-4deg);
  filter: grayscale(1) invert(1);
  pointer-events: none;
}
#s00 .s00-kicker {
  margin: 0 0 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
}
#s00 h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 9vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
#s00 h1 em { font-style: italic; color: var(--bronze-soft); }
#s00 .s00-lead {
  margin: 30px 0 0;
  max-width: 600px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--muted);
}
#s00 .s00-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
#s00 .s00-steps b { font-family: var(--serif); font-weight: 400; color: var(--bronze-soft); margin-right: 6px; }
/* The step list doubles as a clickable index. */
#s00 .s00-steps a,
#s10 .s10-recap a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
#s00 .s00-steps a {
  display: inline-block;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
#s00 .s00-steps a:hover,
#s00 .s00-steps a:focus-visible { color: var(--ink); border-bottom-color: var(--bronze); }
#s10 .s10-recap a { display: block; }
#s10 .s10-recap a:hover,
#s10 .s10-recap a:focus-visible { color: var(--ink); }
#s00 .s00-cue {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  font-style: italic;
  color: var(--bronze-soft);
  text-decoration: none;
  transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}
#s00 .s00-cue:hover,
#s00 .s00-cue:focus-visible { color: var(--ink); gap: 22px; }
#s00 .s00-cue::before {
  content: "";
  width: 1px;
  height: 64px;
  background: linear-gradient(var(--bronze), transparent);
  animation: s00-cue 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes s00-cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Closing */
#s10 { border-top: 1px solid var(--line); }
#s10 .s10-grid { display: grid; gap: 48px; grid-template-columns: 1.2fr 1fr; align-items: end; }
#s10 .s10-recap { margin: 0; padding: 0; list-style: none; counter-reset: s10; columns: 2; column-gap: 32px; font-size: 15px; color: var(--muted); }
#s10 .s10-recap li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line); }
#s10 .s10-recap b { font-family: var(--serif); font-weight: 400; color: var(--bronze-soft); margin-right: 10px; }
#s10 .s10-sign { margin: 40px 0 0; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); }
#s10 .s10-sign a { text-decoration: none; border-bottom: 1px solid var(--line); }
#s10 .s10-legal { margin-top: 64px; font-size: 12px; color: var(--muted); max-width: 820px; }
@media (max-width: 860px) {
  #s10 .s10-grid { grid-template-columns: 1fr; }
  #s10 .s10-recap { columns: 1; }
}

/* Step navigation: fixed on the right, one dot per module, current one lit. Useful when presenting live. */
.stepnav {
  position: fixed;
  z-index: 50;
  right: max(14px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.stepnav.is-on { opacity: 1; }
.stepnav a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  text-decoration: none;
  font-size: 11px;
  color: var(--muted);
}
.stepnav a span {
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(20, 16, 12, 0.8);
}
.stepnav a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.stepnav a:hover span, .stepnav a:focus-visible span { opacity: 1; transform: none; }
.stepnav a.is-current::after { background: var(--bronze); border-color: var(--bronze); transform: scale(1.3); }
.stepnav a.is-current span { opacity: 1; transform: none; color: var(--ink); }
@media (max-width: 860px) { .stepnav { display: none; } }
