/* Home pairs a spacious introduction with compact project lists.
   Detail pages keep their more generous card spacing. */
.workspace-mode {
  display: none;
}

@media (min-width: 851px) {
  .home-page .header-inner {
    height: 64px;
    padding-inline: 32px;
  }

  .home-page .main-nav a {
    padding-block: 22px;
  }

  .home-page .main-nav a.active::after {
    bottom: 12px;
  }

  .home-page .header-login {
    max-width: 146px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-page .hero-inner {
    grid-template-columns: 1.05fr 1fr;
    gap: 32px;
    min-height: 0;
    padding: 72px 40px 76px;
  }

  .home-page .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.6px;
  }

  .home-page .hero h1 {
    margin: 8px 0;
    font-size: clamp(29px, 2.35vw, 34px);
    line-height: 1.22;
    letter-spacing: -.065em;
  }

  .home-page .hero-description {
    font-size: 12px;
    line-height: 1.4;
  }

  .home-page .hero-actions {
    margin: 12px 0 0;
    gap: 10px;
  }

  .home-page .hero-actions .button {
    min-height: 40px;
    padding: 9px 17px;
    font-size: 12px;
    gap: 20px;
  }

  .home-page .hero-footnote {
    display: none;
  }

  .home-page .hero-art {
    min-height: 0;
    height: auto;
    margin: 0;
  }

  .home-page .hero-canvas {
    min-height: 0;
  }

  .home-page .canvas-label {
    bottom: 4px;
    font-size: 8px;
    letter-spacing: 1.3px;
  }

  .home-page .canvas-corner {
    display: none;
  }

  /* Keep the pause control available without an extra full-width strip. */
  .home-page .hero-meta {
    position: absolute;
    right: max(40px, calc((100vw - 1360px) / 2));
    bottom: 4px;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .home-page .hero-manifesto,
  .home-page .hero-meta-right > span {
    display: none;
  }

  .home-page .motion-button {
    font-size: 9px;
    padding: 5px;
  }

  .home-page .ticker {
    padding-block: 5px;
  }

  .home-page .ticker-track {
    gap: 32px;
    font-size: 9px;
    letter-spacing: 1.4px;
  }

  .home-page .ticker-track .asterisk {
    font-size: 13px;
  }

  .home-workspace {
    padding: 20px 32px 32px;
  }

  .home-workspace .workspace-intro {
    display: none;
  }

  .home-workspace .workspace-mode {
    display: inline-block;
    padding: 2px 7px;
    border: 1px solid #d3d8e0;
    border-radius: 20px;
    color: #556785;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .home-workspace .dashboard-grid {
    grid-template-columns: .9fr 1.1fr;
    gap: 28px;
  }

  .home-workspace .section-title {
    min-height: 28px;
    margin-bottom: 9px;
  }

  .home-workspace .section-title h3 {
    font-size: 18px;
  }

  .home-workspace .tabs {
    gap: 20px;
    margin-bottom: 10px;
  }

  .home-workspace .tab {
    padding-bottom: 7px;
    font-size: 12px;
  }

  .home-workspace .project-list {
    display: flex;
    gap: 8px;
  }

  .home-workspace .project-card {
    grid-template-columns: 64px minmax(0, 1fr) 66px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .home-workspace .project-art {
    width: 64px;
    height: 66px;
    border-radius: 7px;
  }

  .home-workspace .card-topline {
    margin-bottom: 3px;
  }

  .home-workspace .project-card .tag {
    padding: 1px 5px;
    line-height: 1.4;
  }

  .home-workspace .progress-number {
    line-height: 1;
  }

  .home-workspace .project-title {
    font-size: 13px;
    line-height: 1.5;
  }

  .home-workspace .project-meta {
    gap: 6px;
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.35;
  }

  .home-workspace .project-updated {
    display: none;
  }

  .home-workspace .progress-line {
    margin-top: 5px;
  }

  .home-workspace .project-next {
    grid-column: 3;
    grid-row: 1;
    padding: 0;
    margin: 0;
    border: 0;
    justify-content: flex-end;
  }

  .home-workspace .project-next > span {
    display: none;
  }

  .home-workspace .continue-button {
    min-height: 36px;
    font-size: 11px;
    gap: 8px;
  }

  .home-workspace .new-project-card {
    min-height: 32px;
    margin-top: 8px;
    font-size: 11px;
  }

  .home-workspace .showcase-subtitle {
    margin: -1px 0 12px;
    font-size: 11px;
    line-height: 16px;
  }

  .home-workspace .showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 12px;
  }

  .home-workspace .showcase-thumb {
    aspect-ratio: 1.9;
    border-radius: 8px;
  }

  .home-workspace .showcase-title {
    padding: 6px 0 2px;
    font-size: 12px;
    line-height: 1.5;
  }

  .home-workspace .showcase-info {
    font-size: 10px;
    line-height: 16px;
  }

  .home-workspace .sample-tag {
    top: 7px;
    left: 7px;
    padding: 1px 4px;
    font-size: 7px;
  }

  .home-workspace .play-button {
    width: 30px;
    height: 30px;
    font-size: 9px;
  }

  .home-workspace .duration {
    right: 7px;
    bottom: 7px;
    font-size: 8px;
  }

  .home-workspace .guest-card {
    min-height: 280px;
    padding: 24px;
  }

  .home-workspace .mentor-banner {
    margin-top: 28px;
    padding: 18px 24px;
  }
}

/* At smaller laptop widths, preserve room for project titles and controls. */
@media (min-width: 851px) and (max-width: 1100px) {
  .home-page .hero-inner {
    padding-inline: 28px;
    gap: 24px;
  }

  .home-page .hero h1 {
    font-size: 28px;
  }

  .home-page .hero-description {
    font-size: 11px;
  }

  .home-workspace {
    padding-inline: 24px;
  }

  .home-workspace .dashboard-grid {
    grid-template-columns: 1fr 1.06fr;
    gap: 20px;
  }

  .home-workspace .project-card {
    grid-template-columns: 52px minmax(0, 1fr) 58px;
    gap: 8px;
    padding-inline: 10px;
  }

  .home-workspace .project-art {
    width: 52px;
    height: 62px;
  }

  .home-workspace .workspace-mode {
    font-size: 9px;
  }

  .home-workspace .showcase-grid {
    column-gap: 10px;
  }

  .home-workspace .showcase-title {
    font-size: 11px;
  }
}

/* Short windows get slightly less decorative space, without fixing page height
   or introducing nested scrolling. Zoom and larger text can still flow down. */
@media (min-width: 851px) and (max-height: 760px) {
  .home-page .hero-inner {
    padding-top: 66px;
    padding-bottom: 72px;
  }

  .home-page .hero h1 {
    font-size: clamp(26px, 2.45vw, 31px);
    margin-block: 8px;
  }

  .home-page .hero-actions {
    margin-top: 12px;
  }

  .home-workspace {
    padding-top: 12px;
  }

  .home-workspace .showcase-grid {
    row-gap: 10px;
  }

  .home-workspace .showcase-thumb {
    aspect-ratio: 2;
  }

  .home-workspace .new-project-card {
    display: none;
  }
}
