/* Project overview desktop composition.
   Keep the project identity in the upper-right with the stellar model. The lower
   information area is split into two visual grammars: metadata reads as a calm
   data rail, while the four capabilities read as editorial milestones. The two
   should not resemble stacked tables. */

@media (min-width: 1181px) {
  .star-detail-shell[data-star-kind="project"] .star-detail-header {
    left: auto;
    right: clamp(46px, 4.4vw, 76px);
    top: clamp(58px, 7.2vh, 76px);
    width: min(680px, 43vw);
    grid-template-columns: minmax(0, 1fr) clamp(174px, 11vw, 192px);
    gap: clamp(26px, 2.2vw, 36px);
    align-items: center;
  }

  .star-detail-shell[data-star-kind="project"] .star-detail-heading {
    position: relative;
    max-width: none;
    min-width: 0;
    padding: 0 clamp(22px, 1.7vw, 28px) 0 0;
    border-right: 1px solid rgba(255,255,255,.105);
    text-align: right;
  }

  .star-detail-shell[data-star-kind="project"] .star-detail-heading::after {
    content: none;
  }

  .star-detail-shell[data-star-kind="project"] .star-detail-star-slot {
    width: clamp(174px, 11vw, 192px);
    justify-self: end;
  }

  .star-detail-shell[data-star-kind="project"] .star-detail-kicker {
    color: rgba(255,255,255,.36);
    font-size: 9.5px;
    letter-spacing: .18em;
  }

  .star-detail-shell[data-star-kind="project"] .star-detail-title {
    max-width: 10.5ch;
    margin: 9px 0 0 auto;
    font-size: clamp(56px, 4vw, 66px);
    line-height: .96;
    letter-spacing: -.052em;
    text-wrap: balance;
  }

  .star-detail-shell[data-star-kind="project"] .star-detail-subtitle {
    max-width: 40ch;
    margin: 13px 0 0 auto;
    color: rgba(255,255,255,.48);
    font-size: clamp(12px, .78vw, 13px);
    line-height: 1.52;
  }

  .project-overview {
    left: clamp(72px, 5.7vw, 100px);
    top: clamp(244px, 28.2vh, 276px);
    width: min(940px, 59vw);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "kicker"
      "thesis"
      "summary"
      "facts"
      "points";
    column-gap: 0;
    align-items: start;
  }

  .project-overview-kicker {
    color: rgba(255,255,255,.56);
    font-size: clamp(13px, .84vw, 14px);
    font-weight: 620;
    line-height: 1.2;
    letter-spacing: .10em;
  }

  .project-overview-thesis {
    max-width: 21ch;
    margin-top: 14px;
    font-size: clamp(34px, 2.35vw, 40px);
    line-height: 1.17;
    font-weight: 520;
    letter-spacing: -.034em;
  }

  .project-overview-summary {
    max-width: 54ch;
    margin-top: 20px;
    color: rgba(255,255,255,.68);
    font-size: clamp(16.5px, 1.04vw, 18px);
    line-height: 1.72;
    letter-spacing: -.008em;
  }

  /* Metadata: one continuous rail with local separators, not four boxed cells. */
  .project-overview-facts {
    grid-area: facts;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    margin-top: clamp(30px, 3.6vh, 36px);
    padding: 0;
    border: 0;
  }

  .project-overview-facts::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg,
      rgba(255,255,255,.18),
      rgba(255,255,255,.11) 56%,
      rgba(255,255,255,.035));
    pointer-events: none;
  }

  .project-overview-fact {
    position: relative;
    display: block;
    min-width: 0;
    padding: 20px clamp(20px, 1.55vw, 26px) 20px 0;
  }

  .project-overview-fact + .project-overview-fact {
    padding: 20px clamp(20px, 1.55vw, 26px) 20px clamp(20px, 1.55vw, 26px);
    border: 0;
  }

  .project-overview-fact + .project-overview-fact::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: linear-gradient(180deg,
      transparent,
      rgba(255,255,255,.095) 26%,
      rgba(255,255,255,.095) 74%,
      transparent);
  }

  .project-overview-fact:last-child {
    padding-right: 0;
  }

  .project-overview-fact span {
    display: block;
    margin-bottom: 9px;
    color: rgba(255,255,255,.34);
    font-size: 9.5px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: .075em;
  }

  .project-overview-fact strong {
    display: block;
    color: rgba(255,255,255,.88);
    font-size: clamp(14.5px, .94vw, 16px);
    line-height: 1.42;
    font-weight: 570;
    letter-spacing: -.012em;
  }

  /* Capabilities: separate editorial milestones. Each item owns its own short
     top rule and breathing room instead of inheriting the metadata table look. */
  .project-overview-points {
    margin-top: clamp(22px, 2.8vh, 28px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 1.8vw, 28px);
    padding: 0;
    border: 0;
  }

  .project-overview-points li {
    position: relative;
    min-height: 92px;
    padding: 23px 10px 16px 38px;
    border-top: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.78);
    background: linear-gradient(180deg, rgba(255,255,255,.014), transparent 68%);
    font-size: clamp(14.5px, .92vw, 15.5px);
    font-weight: 520;
    line-height: 1.46;
    letter-spacing: -.01em;
  }

  .project-overview-points li + li {
    border-left: 0;
  }

  .project-overview-points li::before {
    left: 0;
    top: 27px;
    color: rgba(255,255,255,.31);
    font-size: 9.5px;
    font-weight: 700;
  }

  .project-overview-points li::after {
    content: '';
    position: absolute;
    left: 0;
    top: -1px;
    width: 34px;
    height: 1px;
    background: rgba(255,255,255,.38);
  }

  /* Bottom-right action: refined glass control. It shares a baseline with the
     language switch (styled in homepage-language.css) so the corner reads as one
     deliberate action dock rather than two unrelated floating widgets. */
  .project-overview-more {
    right: clamp(46px, 4.4vw, 76px);
    bottom: clamp(34px, 4.5vh, 48px);
    z-index: 5;
    display: flex;
    align-items: center;
    width: 220px;
    height: 50px;
    gap: 0;
    padding: 0 9px 0 17px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 15px;
    color: rgba(255,255,255,.84);
    background:
      linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
      rgba(4,7,12,.38);
    -webkit-backdrop-filter: blur(15px) saturate(118%);
    backdrop-filter: blur(15px) saturate(118%);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.07),
      0 14px 36px rgba(0,0,0,.24);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .005em;
    transition: border-color .22s ease, background .22s ease, color .22s ease, transform .22s ease;
  }

  .project-overview-more > span {
    min-width: 0;
    white-space: nowrap;
  }

  .project-overview-more b {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    margin-left: auto;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 11px;
    color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.045);
    font-size: 11px;
    font-weight: 520;
    transition: border-color .22s ease, background .22s ease, color .22s ease, transform .22s ease;
  }

  .project-overview-more:hover,
  .project-overview-more:focus-visible {
    color: #fff;
    border-color: rgba(255,255,255,.26);
    background:
      linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.026)),
      rgba(5,9,15,.46);
    transform: translateY(-1px);
    outline: none;
  }

  .project-overview-more:hover b,
  .project-overview-more:focus-visible b {
    color: #fff;
    border-color: rgba(255,255,255,.25);
    background: rgba(255,255,255,.075);
    transform: translate(2px,-1px);
  }
}

@media (min-width: 1181px) and (max-height: 820px) {
  .star-detail-shell[data-star-kind="project"] .star-detail-header {
    top: 48px;
    width: min(620px, 42vw);
    grid-template-columns: minmax(0, 1fr) 158px;
    gap: 26px;
  }

  .star-detail-shell[data-star-kind="project"] .star-detail-star-slot {
    width: 158px;
  }

  .star-detail-shell[data-star-kind="project"] .star-detail-title {
    font-size: clamp(50px, 3.6vw, 58px);
  }

  .star-detail-shell[data-star-kind="project"] .star-detail-subtitle {
    margin-top: 10px;
    font-size: 11.5px;
  }

  .project-overview {
    top: 214px;
    width: min(880px, 58vw);
  }

  .project-overview-thesis {
    margin-top: 10px;
    font-size: clamp(29px, 2.05vw, 34px);
    line-height: 1.16;
  }

  .project-overview-summary {
    margin-top: 14px;
    font-size: 15.5px;
    line-height: 1.58;
  }

  .project-overview-facts {
    margin-top: 20px;
  }

  .project-overview-fact,
  .project-overview-fact + .project-overview-fact {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .project-overview-fact + .project-overview-fact::before {
    top: 13px;
    bottom: 13px;
  }

  .project-overview-fact strong {
    font-size: 13.5px;
  }

  .project-overview-points {
    margin-top: 16px;
    gap: 18px;
  }

  .project-overview-points li {
    min-height: 64px;
    padding-top: 17px;
    padding-bottom: 10px;
    font-size: 13px;
  }

  .project-overview-points li::before {
    top: 20px;
  }

  .project-overview-more {
    height: 46px;
  }

  .project-overview-more b {
    width: 30px;
    height: 30px;
  }
}
