/* Scoped to the three Phase 01 sections on the home page. */
.home-digest .top-phase-one {
  --p1-pink: #e84b98;
  --p1-turquoise: #27c4bd;
  --p1-gold: #c2ac85;
  --p1-ivory: #f2eee6;
  --p1-copy: #d0d0d0;
  --p1-side: max(7%, calc((100% - 1200px) / 2));
  padding-inline: var(--p1-side);
}
.top-phase-one > .label {
  font-size: .8rem;
  margin: 0 0 28px;
  color: var(--p1-pink);
}
#services.top-phase-one > .label { color: var(--p1-turquoise); }
.home-digest .top-phase-one > .p1-heading {
  color: var(--p1-ivory);
  font-size: clamp(28px, 3.85vw, 54px);
  line-height: 1.5;
  max-width: none;
  margin: 0;
}
.top-phase-one .p1-heading span { display: block; }
.top-phase-one .p1-heading span + span { color: var(--p1-turquoise); }
.top-phase-one .p1-heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  margin-top: 24px;
  background: linear-gradient(to right, var(--p1-turquoise) 44px, var(--p1-pink) 44px);
}
#about.top-phase-one .copy {
  max-width: 42rem;
  color: var(--p1-copy);
  font-size: 1rem;
  line-height: 1.9;
  margin: 24px 0 0;
}
#about.top-phase-one > .link {
  display: inline-flex;
  align-items: center;
  margin: 40px 0 0;
  min-height: 44px;
  padding: 0 0 16px;
  color: var(--p1-ivory);
  border-bottom: 1px solid var(--p1-gold);
}
.top-phase-one a:focus-visible, .top-phase-one button:focus-visible, .top-phase-one [tabindex]:focus-visible {
  outline: 2px solid var(--p1-turquoise);
  outline-offset: 4px;
}
.top-phase-one .p1-arrow { flex: none; width: 12px; height: 12px; }

#services.top-phase-one .digest-grid { gap: clamp(22px, 3vw, 40px); margin-top: 32px; }
#services.top-phase-one .digest-card {
  --service-accent: var(--p1-pink);
  display: flex;
  flex-direction: column;
}
#services.top-phase-one .digest-card:nth-child(2) { --service-accent: var(--p1-turquoise); }
#services.top-phase-one .digest-card:nth-child(3) { --service-accent: var(--p1-gold); }
#services.top-phase-one .p1-service-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1.35;
  color: var(--service-accent);
  margin: 0 0 16px;
  min-height: 34px;
}
.p1-service-heading::after {
  content: "";
  flex: 1;
  min-width: 12px;
  height: 1px;
  background: currentColor;
}
.p1-service-number { font-size: clamp(28px, 3vw, 38px); font-weight: 400; line-height: 1; }
#services.top-phase-one .digest-card > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
#services.top-phase-one .digest-card > h3 { margin: 16px 0 12px; color: var(--p1-ivory); font-size: 20px; line-height: 1.5; }
#services.top-phase-one .digest-card > p:not(.p1-service-heading) { color: var(--p1-copy); font-size: 15px; line-height: 1.8; margin: 0 0 20px; }
#services.top-phase-one .digest-more,
#works.top-phase-one .work-open {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding-bottom: 12px;
  border-bottom: 1px solid currentColor;
  color: var(--service-accent, var(--p1-turquoise));
}
#services.top-phase-one .digest-more { margin-top: auto; font-size: .875rem; }

#works.top-phase-one .work-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 32px 0 20px;
}
.p1-position { display: flex; align-items: baseline; gap: .48em; color: var(--p1-gold); font-size: .9rem; }
.p1-position strong { font-size: 2rem; color: var(--p1-turquoise); font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1; }
#works.top-phase-one .work-toolbar button { width: 44px; height: 44px; color: var(--p1-ivory); border: 1px solid var(--p1-gold); border-radius: 50%; }
#works.top-phase-one .work-toolbar button:disabled { color: #4d4d4d; border-color: #353535; opacity: 1; }
#works.top-phase-one .work-track {
  --p1-card: 30%;
  --p1-gap: 26px;
  display: grid;
  grid-template-columns: repeat(4, var(--p1-card)) calc(100% - var(--p1-card) - var(--p1-gap));
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  gap: 0 var(--p1-gap);
  margin: 0;
  padding: 0;
  scroll-padding: 0;
  scrollbar-width: none;
}
#works.top-phase-one .work-track::-webkit-scrollbar { display: none; }
#works.top-phase-one .work-track::after { content: ""; grid-row: 1 / span 5; }
#works.top-phase-one .work-slide {
  display: grid;
  grid-row: 1 / span 5;
  grid-template-rows: subgrid;
}
#works.top-phase-one .work-slide > a {
  display: grid;
  grid-row: 1 / span 5;
  grid-template-rows: subgrid;
}
#works.top-phase-one .work-square { aspect-ratio: 1; border-radius: 0; }
#works.top-phase-one .work-square img { transform: none; }
#works.top-phase-one [data-project="farplane-night-vol-19"] img { object-fit: contain; }
#works.top-phase-one [data-project="tyranos"] img { object-position: center 40%; }
#works.top-phase-one .work-meta {
  color: var(--p1-pink);
  margin: 16px 0 10px;
  font-size: .75rem;
  line-height: 1.45;
  letter-spacing: .07em;
}
#works.top-phase-one .work-slide h3 { color: var(--p1-ivory); font-size: clamp(20px, 2vw, 25px); line-height: 1.35; margin: 0 0 12px; }
#works.top-phase-one .work-slide-description { color: var(--p1-copy); font-size: .9375rem; line-height: 1.8; margin: 0 0 20px; }
#works.top-phase-one .work-open { font-size: .8125rem; }
.p1-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 24px; }
.p1-progress span { height: 3px; background: #323232; }
.p1-progress .active { background: var(--p1-pink); }
#works.top-phase-one .swipe-note { margin: 10px 0 0; color: var(--p1-copy); }
#works.top-phase-one .p1-all {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin-top: 32px;
  padding: 20px 12px;
  border: 1px solid var(--p1-turquoise);
  color: var(--p1-ivory);
  font-size: .875rem;
  text-align: center;
}
.p1-all > [lang="en"] { display: flex; align-items: center; gap: .55em; color: var(--p1-turquoise); letter-spacing: .09em; }

@supports not (grid-template-rows: subgrid) {
  #works.top-phase-one .work-slide { display: block; }
  #works.top-phase-one .work-slide > a { grid-template-rows: auto minmax(56px, auto) minmax(68px, auto) minmax(78px, auto) auto; }
}
@media (max-width: 800px) {
  .home-digest .top-phase-one { --p1-side: 24px; padding: 64px var(--p1-side); }
  .home-digest .top-phase-one > .p1-heading { font-size: clamp(27px, 7.7vw, 32px); }
  #services.top-phase-one .digest-grid { grid-template-columns: 1fr; gap: 40px; }
  #services.top-phase-one .p1-service-heading { font-size: .72rem; }
  #works.top-phase-one .work-track {
    --p1-card: 88%;
    --p1-gap: 16px;
    margin-inline-end: calc(-1 * var(--p1-side));
    padding-inline-end: var(--p1-side);
  }
}
