/* Final desktop and consistency pass.
   Loaded after the existing site, screenshot, and mobile styles. */

h1,
h2,
h3 {
  text-wrap: balance;
}

.lede,
.section-head p,
.prose-section p,
.experience-item li,
.card p {
  text-wrap: pretty;
}

/* Homepage About section */
.about-heading {
  margin-bottom: 26px;
}

.about-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 22px;
  align-items: start;
}

.about-content-grid .bio-panel {
  height: auto;
}

.availability-panel {
  background: var(--blue-soft);
  border: 1px solid #d5e7f1;
  border-radius: var(--radius);
  padding: 30px;
}

.availability-panel .mini-label {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.availability-panel h3 {
  margin-bottom: 18px;
  color: var(--navy);
}

.availability-panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.availability-panel li {
  margin: 6px 0;
}

.availability-note {
  margin: 20px 0 0;
  padding-top: 17px;
  border-top: 1px solid #c9dee9;
  color: var(--navy);
  font-size: .92rem;
  font-weight: 800;
}

/* AsterPeak screenshot captions */
.screen-grid {
  margin-top: 26px;
}

.screen-card .caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding: 18px 20px;
}

.screen-card figcaption.caption span.caption-label {
  color: var(--muted);
  font-weight: 650;
  white-space: normal;
}

.screen-card .caption .open-full {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

/* Give dense project sections more breathing room. */
.prose-section {
  margin-bottom: 84px;
}

#deliverables.prose-section {
  margin-bottom: 0;
}

@media (min-width: 901px) {
  :root {
    --max: 1240px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.32fr) minmax(360px, .68fr);
    gap: 50px;
  }

  .hero h1 {
    max-width: 820px;
    font-size: clamp(3.5rem, 5.2vw, 4.9rem);
  }

  .section-head {
    max-width: 900px;
  }

  .project-content {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 58px;
  }

  .project-hero h1 {
    max-width: 1040px;
  }

  .project-hero .lede {
    max-width: 860px;
  }

  .contact-section {
    padding-top: 72px;
  }
}

@media (max-width: 900px) {
  .about-content-grid {
    grid-template-columns: 1fr;
  }

  .availability-panel {
    padding: 26px;
  }

  .prose-section {
    margin-bottom: 62px;
  }
}

@media (max-width: 640px) {
  .about-heading {
    margin-bottom: 20px;
  }

  .availability-panel {
    padding: 22px;
  }

  .screen-card .caption {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .screen-card .caption .open-full {
    justify-self: start;
  }

  .prose-section {
    margin-bottom: 52px;
  }
}

/* Experience and tools are intentionally kept together so the page flows from
   work history into the systems and capabilities used in that work. */
.tools-block {
  margin-top: 46px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.tools-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.tools-heading .eyebrow {
  margin-bottom: 10px;
}

.tools-heading h3 {
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.tools-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.tool-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.tool-logo-card {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
}

.tool-logo-card img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.tool-logo-card span {
  color: var(--navy);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.25;
}

.capability-pills {
  margin-top: 22px;
}

@media (max-width: 640px) {
  .tools-block {
    margin-top: 34px;
    padding-top: 30px;
  }

  .tool-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tool-logo-card {
    min-height: 92px;
    padding: 14px 10px;
  }

  .tool-logo-card img {
    width: 32px;
    height: 32px;
  }

  .tool-logo-card span {
    font-size: .82rem;
  }
}
