/* Prompt styling */
.prompt {
  color: var(--green);
  margin-bottom: 4px;
  overflow-wrap: break-word;
  word-break: break-all;
}

.prompt .user {
  color: var(--pink);
}

.prompt .at {
  color: var(--subtext0);
}

.prompt .host {
  color: var(--blue);
}

.prompt .colon {
  color: var(--subtext0);
}

.prompt .path {
  color: var(--mauve);
}

.prompt .dollar {
  color: var(--text);
}

.prompt .cmd {
  color: var(--yellow);
}

.prompt .arg {
  color: var(--peach);
}

.prompt .flag {
  color: var(--teal);
}

.prompt .pipe {
  color: var(--overlay1);
}

/* Command output */
.output {
  margin: 16px 0 24px 0;
  color: var(--subtext1);
}

#hero-typing .output {
  margin-top: 4px;
}

/* The mission is four panels: what I do for teams, and the three things about
   how I work that explain why. A 2x2 grid rather than multi-column text, so
   each one is a discrete idea with its own heading instead of prose that
   happens to be split down the middle. */
.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

@media (min-width: 900px) {
  .mission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
  }
}

.mission-panel {
  border: 1px solid var(--surface0);
  border-radius: 6px;
  padding: 14px 16px 16px;
  background: color-mix(in srgb, var(--mantle) 55%, transparent);
}

.mission-head {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.mission-body {
  color: var(--subtext0);
  font-size: 0.86rem;
  line-height: 1.75;
}

.mission-point { margin: 6px 0; }

.output p {
  margin: 2px 0;
}

/* Blinking cursor */
.cursor {
  display: inline-block;
  width: 8px;
  height: 1.2em;
  background-color: var(--text);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Hero section */
#hero {
  /* Matches the hub's nav-to-banner gap (hub/css/style.css .terminal-window).
     Keep the two in sync: the sites read as one system and an uneven gap
     between the tab bar and the ASCII banner is obvious when switching. */
  padding-top: 28px;
  margin-bottom: 80px;
}

.ascii-art {
  color: var(--pink);
  font-size: clamp(3px, 1.4vw, 14px);
  line-height: 1.2;
  white-space: pre;
  /* `overflow: hidden`, never `overflow-x: auto`. Setting one axis to a
     non-visible value forces the other to compute to `auto`, which turns this
     purely decorative banner into a scroll container the pointer can catch. */
  overflow: hidden;
  margin-bottom: 32px;
}

#hero-typing {
  min-height: 300px;
}

#hero-typing .line {
  opacity: 0;
  transition: opacity 0.01s;
}

#hero-typing .line.shown {
  opacity: 1;
}

#hero-typing .line:first-child {
  opacity: 1;
}

#hero-typing .line.fade-in {
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateY(8px);
}

#hero-typing .line.fade-in.shown {
  transform: translateY(0);
}

/* CTA button in hero */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 24px;
  background: var(--pink);
  color: var(--crust);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

/* Gated so a tap does not leave the control stuck in its hovered,
   transformed state until the next tap elsewhere on the page. */
@media (hover: hover) {
  .hero-cta:hover {
    background: var(--mauve);
    color: var(--crust);
    text-decoration: none;
    transform: translateY(-1px);
  }
}

.hero-cta .icon {
  width: 16px;
  height: 16px;
  color: var(--crust);
}

/* Scroll cue ─────────────────────────────────────────────────
   The hero fills the viewport, so nothing signals that sections follow.
   A quiet outlined chevron does that without competing with the CTA above
   it: ghost styling keeps the pink CTA the only primary action.
   The drift is the affordance, not decoration; the global reduced-motion
   rule in components.css already neutralises it. */

.hero-cue {
  margin-top: 14px;
  text-align: center;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--surface1);
  border-radius: 4px;
  color: var(--overlay1);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  animation: scroll-cue-drift 2.4s ease-in-out infinite;
}

.scroll-cue:hover {
  color: var(--pink);
  border-color: var(--pink);
  background: var(--surface0);
  text-decoration: none;
}

.scroll-cue .icon {
  width: 16px;
  height: 16px;
}

@keyframes scroll-cue-drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* Fixed contact button */
.fixed-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9997;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--pink);
  color: var(--crust);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.2s;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.fixed-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Gated so a tap does not leave the control stuck in its hovered,
   transformed state until the next tap elsewhere on the page. */
@media (hover: hover) {
  .fixed-cta:hover {
    background: var(--mauve);
    color: var(--crust);
    text-decoration: none;
    transform: translateY(-2px);
  }
}

.fixed-cta .icon {
  width: 14px;
  height: 14px;
  color: var(--crust);
}

/* CV download button */
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--surface1);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}

/* Gated so a tap does not leave the control stuck in its hovered,
   transformed state until the next tap elsewhere on the page. */
@media (hover: hover) {
  .hero-cta-secondary:hover {
    background: var(--surface2);
    color: var(--pink);
    text-decoration: none;
    transform: translateY(-1px);
  }
}

.hero-cta-secondary .icon {
  width: 16px;
  height: 16px;
}
