/* Universal artifact identity: agent fleet. Shared cool shell and bounded section navigation. */
:root {
  --scope-card: #fcfdfc;
  --scope-band: #e8eff1;
  --bash-dock-height: 100px;
  color-scheme: light;
}
html, body { height: 100%; overflow: auto; }
body, .deck, .slide, .nav { background: var(--bg); }
::selection { background: #cbdfe6; color: var(--ink); }
.deck { position: relative; width: 100%; height: auto; overflow: visible; }
.slide {
  position: relative; width: 100%; height: auto; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem 2rem calc(var(--bash-dock-height) + 2rem); transform: none; transition: none; will-change: auto;
  overflow: visible; scroll-margin-top: 1rem;
}
.slide[data-slide="home"] {
  padding-bottom: calc(var(--bash-dock-height) + 2rem);
  justify-content: flex-start;
  justify-content: safe center;
}
.slide[data-slide="home"] > * { flex-shrink: 0; }
.nav-link[data-target], .slide[data-slide] { --section-color: var(--accent); }
.slide[hidden] { display: none !important; }
html.nav-ready, .nav-ready body { overflow: hidden; }
.nav-ready .deck { height: 100%; overflow: hidden; }
.nav-ready .slide {
  position: absolute; inset: 0; height: 100%; min-height: 0; overflow-y: auto;
  overscroll-behavior-y: contain; scrollbar-color: #8ba3ad var(--bg); scrollbar-width: thin;
}
@keyframes section-enter { from { opacity: 0; } to { opacity: 1; } }
.nav-ready .slide.is-entering { animation: section-enter 180ms ease-out both; }
.nav-link { position: relative; }
.nav-link::after {
  content: ''; width: 18px; height: 2px; background: transparent;
  position: absolute; bottom: 0; left: calc(50% - 9px);
}
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav-link[aria-current="page"]::after { background: var(--accent); }
.nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.wordmark-heading {
  display: flex; align-items: center; justify-content: center; width: 100%;
  margin: 0; font: inherit; line-height: 0;
}
button.wordmark {
  appearance: none; border: 0; padding: 0; background: transparent;
  color: var(--ink); font: inherit; cursor: pointer; touch-action: manipulation;
}
button.wordmark:focus-visible { outline: 2px solid var(--accent); outline-offset: 10px; border-radius: 3px; }
.bash-assistant { box-shadow: 0 12px 50px #172a3526; }
.bash-assistant::backdrop { background: #172a3529; }
.clay-shadow { background: #172a3521; }
.clay-speech { box-shadow: 0 4px 16px #172a351a; }
.clay-nav-left { padding-inline-start: 84px; }
.clay-nav-right { padding-inline-end: 84px; }
.clay-character[data-character="terminal"]::after {
  content: 'CLICK ME!'; position: absolute; top: 50%; right: calc(100% + 8px); transform: translateY(-50%);
  width: 76px; text-align: center;
  padding: 2px 5px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--scope-card); color: var(--ink); white-space: nowrap;
  font: 700 11px/1.35 'Geologica', sans-serif; letter-spacing: .025em; pointer-events: none;
}
@media (max-width: 1100px) {
  .nav.clay-dock { --clay-character-size: 42px; padding: .25rem .75rem calc(.4rem + env(safe-area-inset-bottom)); }
  .clay-nav-row { grid-template-columns: repeat(2,minmax(0,1fr)); width: min(100%,620px); gap: 0; }
  .clay-nav-left { grid-column: 1; grid-row: 1; justify-content: flex-end; }
  .clay-nav-right { grid-column: 2; grid-row: 1; justify-content: flex-start; }
  .nav.clay-dock .nav-links { grid-column: 1 / -1; grid-row: 2; justify-content: space-around; width: 100%; gap: 0; }
}
@media (max-width: 520px) {
  .clay-nav-row { grid-template-columns: minmax(0,1fr); width: 100%; }
  .clay-nav-left, .clay-nav-right { grid-column: 1; justify-self: center; justify-content: center; width: max-content; padding-inline: 56px; }
  .clay-nav-right { grid-row: 2; }
  .nav.clay-dock .nav-links { grid-column: 1; grid-row: 3; }
  .clay-character[data-character="terminal"]::after { width: 48px; white-space: normal; }
}
@media (max-width: 380px) { .nav.clay-dock { --clay-character-size: 36px; } }
/* Process is a real ordered workflow; retain existing row grid and typography. */
#process .process-steps { list-style: none; margin: 0; padding: 0; }
#process .step-title { margin-top: 0; }
.bash-topic a:focus-visible, .bash-topic button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px;
}
.bash-topic {
  position: fixed; inset: auto 16px calc(var(--bash-dock-height) + 1rem); z-index: 120;
  width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - var(--bash-dock-height) - 2rem);
  margin: 0 auto; padding: 22px; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--line); border-radius: 10px; background: var(--scope-card);
  color: var(--ink); box-shadow: 0 8px 30px #172a3521;
}
.bash-topic[hidden] { display: none !important; }
.bash-topic::backdrop { background: transparent; pointer-events: none; }
.bash-topic-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bash-topic h2 { margin: 0; font: 400 30px/1.08 'Instrument Serif', Georgia, serif; letter-spacing: -.015em; text-wrap: balance; }
.bash-topic h2:focus { outline: none; }
.bash-topic-close { flex: 0 0 auto; min-height: 44px; padding: 0 6px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bash-topic-pitch { margin: 16px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.bash-topic-action { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-size: 12px; font-weight: 600; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }
.bash-topic-action:hover, .bash-topic-close:hover { color: var(--ink); }
@media (max-width: 700px) {
  :root { --bash-dock-height: 126px; }
  .slide { padding: 1.5rem 1.25rem calc(var(--bash-dock-height) + 2rem); }
  .bash-topic { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-ready .slide.is-entering { animation: none; }
  .nav-link, .nav-dot { transition: none; }
}
